webrob — 2011-04-25T15:08:03-04:00 — #1
I am attempting to implement this code here : Bridgford :: Ready to Eat - Products.
I am utilizing this tutorial : jQuery Tutorial – Image Swap On Click « Design Chemical – jQuery, Wordpress, Tutorials & Plugins
I have successfully implemented the hover but need to have the image stay when clicked. Can someone see what I am doing wrong?
Thanks in advance!
webrob — 2011-04-26T12:16:30-04:00 — #2
rainner — 2011-04-26T19:57:20-04:00 — #3
Bridgford :: Ready to Eat - Products
Error: imgSwap is not defined
You need to select something the same way you do with CSS, or pass in a DOM object.
// select by ID
$( '#imgSwap' ).preload();
// select by ClassName
$( '.imgSwap' ).preload();
webrob — 2011-04-27T00:08:02-04:00 — #4
Awesome, I got the pre-loader to work but now I cannot get the image swap onclick to behave properly. Can you possibly see what I am doing wrong with this now?
Thanks again for the help!