MrQwest

Testing the Ampersand (&)

Dan Cederholm recently posted an article regarding Ampersands, & how they can be used to spruce up some dull text. This was an astonishing read & well worth the read if you can spare 10 or 15 minutes!

I enjoyed reading Dan’s post and wanted to add that functionality to my site, but didn’t want to go through my existing site changing all the ampersands to include a SPAN tag and CLASS attribute.

Then I read an essay written by Patrick Haney. Dan’s post really struck a chord with Patrick, which spurred him onto writing the aforementioned essay. Patrick felt the same way, and didn’t fancy adding a SPAN tag or CLASS attribute to all his ampersands, so with the help of jQuery (and John Resig – creator of jQuery) wrote a nifty script which would replace all the ampersands on the page with an ampersand wrapped in a span tag!

Thanks to Dan for the original post and Patrick for his post including the how-to on writing the jQuery file to swap the ampersands on the fly!

I’ve followed the steps on Patricks page and implemented them here, and as you can see, here is my stylised ampersand!

&

Man, jQuery just keeps coming up trumps!


Previously:

Next:

Search

Hire Me