Monthly Archives: March 2008

Slikcalc – Easy Javascript Calculations

I've put together a small javascript library that greatly simplifies creating dynamic javascript calculators. It works great for just about anything, ranging from calculating columns of values, to a complex custom formula. You can even write your own calculators and plug them into the framework with little effort.

Slikcalc - Easy Javascript Calculations
Tagged , | 16 Comments

Simple jQuery image rollover script

Just a simple script I use to automate image rollovers that may be of use to others. Just include this javascript: $(function() { $('.rollover').hover(function() { var currentImg = $(this).attr('src'); $(this).attr('src', $(this).attr('hover')); $(this).attr('hover', currentImg); }, function() { var currentImg = $(this).attr('src'); $(this).attr('src', $(this).attr('hover')); $(this).attr('hover', currentImg); }); }); This will pick up an image that looks as follows, and setup the rollover image: <img src="first.gif" hover="second.gif" class="rollover"/>
Tagged , | 31 Comments