I had three main priorities when writing this
- Easy to use & implement
- Accessible & search engine friendly
- Semantically correct markup
I think i managed pretty well. Give it a try!
Here’s how it works:
class="switch" to your existing links and include linkswitcher.js in
your document. Style your links with css. The switched link will use a class
called switchHover. View the source of the example css for further info. That’s
Notice that you can’t apply a margin or padding to the a element itself. Apply
it to the parent element (in the example the
li, see example 3)
The work is licensed under CreativeCommons Attribution-ShareAlike 2.5 license, which means that if you make modifications, you will have to share it under the same license. If you share it, I also want to be noted as the original author, with a link back to this site. The usage for any purpose, however, is totally up to you.