Hi, I wrote some lines to make an element fade in & out when HOVER another text this is my script:
$(sw1).hover(function () {
if ($(slide_img).attr("src")!="images/1.jpg"){
$(slide_img).fadeOut(200,function() {
$(slide_img).attr({src:"images/1.jpg"});
$(slide_img).fadeIn(200);
}
);}
},function(event){ /* NOTHING HERE */ }
);
I want to define a function named "slide" then call it when HOVER like
this:
$(sw1).hover(slide(),function(event){ /* NOTHING HERE */ } );
what should i write ???

