Skip to content

A plugin/class for mootools that examines links and identifies links that lead the user off the page and points them out.

Notifications You must be signed in to change notification settings

kolin1979/MooExt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MooExt

A plugin/class for mootools that examines links and identifies links that lead the user off the page and points them out.

basic usage:

var extLinks = new ExternalLinks('linkcontainer', { domain:'mysite.com' });

will scan through all the 'a' elements in the 'linkcontainer' element. for each 'a' element it will check whether the 'href' link is in the passed domain.

Class:

var extLinks = new ExternalLinks(containerElement, { imageLocation:'images/ext.png', // the location for the icon that identifies external links elementAttribute:'rel', // an alternative attribute that can be used to force a link within 'domain' to be external attributeCondition:'ext', // the value within elementAttribute to look for domain:'' // the websites domain, e.g. 'mysite.com' });

About

A plugin/class for mootools that examines links and identifies links that lead the user off the page and points them out.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published