how do i respond to click and hover at the same time?
Hi.
This is what i have tried but doesnt seem to work...
-
$(document).ready(function(){
$("#gallery-thumbs a").bind('click', 'hover', function(){
$("#img2").fadeTo(1, 0.0);
var largePath = $(this).attr("href");
var largeAlt = $(this).attr("title");
$("#img2").attr({ src: largePath, alt: largeAlt }).fadeTo(1500, 1.0);
$("h2 em").html("" + largeAlt + ""); return false;
});
Im not really sure what i am doing. Also, i get an error in firebug tell me that a second argument is missing for the hover event. However i dont want a second argument. When i hover over i just want it to stay in that state.
Any sugguestions about how i can do this?
Thanks!