Return to Main Page

Archive: Web Development

Shift Keeps Happening

replaceClass, a jQuery plugin to replace classes

This jQuery plugin replaces one class with another on hover or click.

Note that the first two parameters are optional.

Here, #p1 is affected on hover:

$('#p1').replaceClass({old_class:"blue", new_class:"red"});

Here, #p2 is affected:

$('#p1').replaceClass({event_type:"click", element_affected:"#p2", old_class:"blue", new_class:"red"});

No Comments »

intrinsi on July 13th 2009 in Web Development

Generate random Twitter poems

Results range from LOL to WTF.

Try it!

No Comments »

intrinsi on March 29th 2009 in Humor, Web Development