I thought someone here could find this useful. I created this one liner
today that allows easy image swapping:
img = the id of the image that you want to swap
newimg = the new image to swap it out with
* new image must be located in the same directory as the original
$(img).src = $(img).src.replace($A($(img).src.split("/")).pop(),
newimg);
I hope this helps someone!
Ian Tyndall
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs