Forum Moderators: open
I then call this as follows:
<script language = "javascript" type="text/javascript">
//showhide('DJdiv<? echo $varDJID;?>','hidden');
showhide('DJdiv<? echo $DJDiv;?>','hidden');
function showMenus() {
showhide('DJdiv<? echo $varDJID;?>','');
}
setTimeout('showMenus()', 5000)
</script>
The problem is I don't know how to rnu this for all of the other menus. Would I need to load all the other menu divid's into an array?
It's also further complicated by the fact that each CSS menu has further drop downs, whioch do not seem to be hidden (probably because they do not have an id tag).
Any ideas?
So, the function is called, but I need to call it for every div except the one that is clicked.
function brieflyHideMenus(varDJID) {
for (var i=0;i<<? echo $NumberOfMenus;?>;i++) {
if (i!= varDJID) {
var DJDiv = 'DJdiv' + i;
alert(DJDiv);
document.getElementById(DJDiv).style.visibility='hidden';
setTimeout("document.getElementById(globalDJDiv).style.visibility='visible'", 5000)
}
}
} (Forgive my lame attempt to write Perl. Hopefully you get my drift.)