Re: I got a problem can you help??? ok I need some help with Jquery it's a javascript lib I am trying to make a li to fade in over an picture when the mouse is over the picture and when it moves off the picture then it fades back out.
I know I have to use the hover functions and also the fadeIn(slow) fadeOut(slow) functions.
I already made a script here it is:
$("document").ready(function() {});
var hide=false;
$("#image").hover(
function () {
if (hide) clearTimeout(hide);
$("#ul1").fadeIn("slow");},
function () {
hide=setTimeout(function(){
$("#ul1").fadeOut("slow")},250);});
Is there anything wrong with it??
becuse I dosen't do anything.
I haver tried it and dosen't do anything.
|