国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:External Links 对出站外链进行标识提示

[复制链接]
发表于 8-24-2012 18:49 | 显示全部楼层 |阅读模式

External Links

External Links is a small module used to differentiate between internal and external links. Using jQuery, it will find all external links on a page and add an external icon  indicating it will take you offsite or a mail icon  for mailto: links.

Configuration options:

  • Apply icons to either mailto: or external links or both.
  • Configure external links to open in a new window.
  • A confirmation message when leaving the site.
  • Regular expression inclusion and exclusion of links considered external.

You may also take a look at External Link Extras, which can expand the functionality of External Links.

This module Built by Robots:

Downloads



External Links - 可为出站链接显示图标和配置链接打开方式的链接辅助模块


extlink

External Links 在 drupal.org 的项目名称为 Extlink,Extlink 用于对站内和站外链接进行区分(使用 JQuery)。它在发现页面中的站外链接时,会在链接后面添加一个外链标识 ,以告知用户此链接将会将其离开当前网站。对于 mailto: 链接则会添加信封图标 。


Extlink 的可配置项:


是否在外链和 mailto 链接后显示图标

配置出站链接在新窗口打开

点击出站链接时显示提示信息,比如可以显示(您正试图访问一个外部站点,请问是否要离开本站 :D)

通过正则表达式定义站内链接和出站链接(匹配规则的URL将被视为站内链接或出站链接)


|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 2-12-2025 16:52 , Processed in 2.467820 second(s), 198 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表