Click to See Complete Forum and Search --> : Menubar doesn't time-out


TJJ
05-13-2003, 11:10 AM
I can't seem to get this to work on my cascademenu.css page. I have added this code after the 'Body' and before the 'Menu' coding but the timeout function doesn't seem to work.

var callFunction = "hideMenuHelper()";

function hideMenu() {
setTimeout(callFunction, 500);
}

function hideMenuHelper {
document.getElementById("elementID").style.visibility = "hidden";
}

Jona
05-13-2003, 11:13 AM
setTimeout("callFunction()", 500);

If that does not work:

setInterval("callFunction()", 500);

TJJ
05-13-2003, 11:36 AM
Evertime I save my cascademenu.css age it deletes the

setInterval("callFunction()", 500);

I must be placing this code on the wrong page.

Jona
05-13-2003, 11:39 AM
Your code should be in either the actual page or a .js file. Not a .css file, because this is JavaScript not CSS.