Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged links



« Prev 1 Next »
Add attribute to links to open them in a new window. Example - rel="external". Alternative to target="_blank", conforming to XHTML specification.
0 793 posted 12 years ago by Huskie
0 713 posted 12 years ago by dubogii
1 520 posted 13 years ago by cleo
There are many ways to have jQuery open external links for you. Some depend on relative URL\'s for internal links and absolute URL\'s for external links. Some analyze the link to see if it matches your domain. These are great but can sometimes be con...
0 599 posted 13 years ago by scribbleitdesigns
Uses jQuery to give links with rel=\"external\" the ability to open in a new window, while keeping the document XHTML or HTML Strict. Works by assigning a \"_blank\" value to the \"target\" attribute of all such links after the page has already loade...
0 683 posted 13 years ago by Moridin
Originally from http://www.pseudocoder.com Make an li (or div or whatever) clickable without having to wrap it in a link-tag. Like Matt, I like to add a .hover class to it in order to apply hover effects
0 497 posted 13 years ago by Rembrand
Add target blank or rel external to outgoing links automatically.
3 779 posted 14 years ago by vagrantradio
Any link with a hash (#) will scroll to that id on the page. Hat Tip, Karl Swedberg.
1 654 posted 14 years ago by vagrantradio
Con esto evitamos que un enlace que tengamos con 'href="#"' actue como tal y la pagina haga scroll hasta la parte superior.
0 441 posted 14 years ago by jacinmontava
This code appends a class of external to all all outbound links It includes a fix for Safari which does not recognise internal links that use a different port
1 639 posted 14 years ago by flicity
I'm new to jQuery, so please be kind if there are any errors or redundancies in the code. The problem: Basically, we were getting tons of scammers signing up on our Kickapps hosted community. They were immediately posting dozens of RSS feeds & lin...
0 887 posted 14 years ago by Jdonner
Removed a certain word from a list of links (purely for design reasons). Link length way to long with the link included.
1 969 posted 15 years ago by 1man
« Prev 1 Next »