virva
05-02-2003, 02:45 AM
Hi everybody! Could you help a newbie...?
I have a js menu that appears with onMouseOver. I would it like to disappear after 5 seconds, but I am not sure how to do it. This is the code I have right now (I call the function in other part of my page):
--
var refer = true;
var howLong = 5000;
function combo() {
if (refer = true) {
document.all.contents.style.visibility="visible";
refer = false;
if (refer = false){
t = null;
//var howLong = 5000;
t = setTimeout(document.all.contents.style.visibility="hidden", howLong);
refer = true;
}
}
}
--
Any help appreciated - preferably asap. Thank you! :)
I have a js menu that appears with onMouseOver. I would it like to disappear after 5 seconds, but I am not sure how to do it. This is the code I have right now (I call the function in other part of my page):
--
var refer = true;
var howLong = 5000;
function combo() {
if (refer = true) {
document.all.contents.style.visibility="visible";
refer = false;
if (refer = false){
t = null;
//var howLong = 5000;
t = setTimeout(document.all.contents.style.visibility="hidden", howLong);
refer = true;
}
}
}
--
Any help appreciated - preferably asap. Thank you! :)