m having a problem with a section of javascript.
The code is completely function, but the menus disappear alittle too fast
when you mouseoff. So what I want to do is slow down the function.
lhide('proj_man', 'menu2' );
function lhide(s_menu, k_menu) {
setTimeout("document.getElementById(s_menu).style.visibility
= 'hidden'", 1000)
setTimeout("document.getElementById(k_menu).style.visibility
= 'hidden'", 500)
}
This is the code im using to do it. basicly the function works without the
setTimeout function call, so there must be something wrong with the way i've
written the call, can anyone help me.
This piece of code returns an error on line1 char 1 (which is incorrect as
it isnt positioned at line 1 char 1. It also says 's_menu' is undefined. but
s_menu is a variable why should this call try and access it as a string???
any help would be greatly appreciated.
Regards
Joseph Atie
The code is completely function, but the menus disappear alittle too fast
when you mouseoff. So what I want to do is slow down the function.
lhide('proj_man', 'menu2' );
function lhide(s_menu, k_menu) {
setTimeout("document.getElementById(s_menu).style.visibility
= 'hidden'", 1000)
setTimeout("document.getElementById(k_menu).style.visibility
= 'hidden'", 500)
}
This is the code im using to do it. basicly the function works without the
setTimeout function call, so there must be something wrong with the way i've
written the call, can anyone help me.
This piece of code returns an error on line1 char 1 (which is incorrect as
it isnt positioned at line 1 char 1. It also says 's_menu' is undefined. but
s_menu is a variable why should this call try and access it as a string???
any help would be greatly appreciated.
Regards
Joseph Atie