I'm not sure if this is inflicting on the forum rules (doesn't support bandwidth for discussions about other products), but javascript isn't really a product like blitzbasic. I'm sure some people around here know some stuff about this...
I am having real problems with a drop down menu, I want to hide or show a division when another division is pressed (ie. a section of a menu dropping down and up), I can do that for one menu by using...
document.all.div.style.display = "none"
But I want to pass a value into a function so that I may use the same function for each menu. This is my code so far...
inside head and script tags...
function menuOnOff(e) {
document.all.e.style.display = "none";
}
inside body tags.....
<DIV class="menuclass" onClick="menuOnOff(mnu1)">Home</DIV>
<DIV id=mnu1 class="menuclass">News</DIV>
I am meaning to pass the value "mnu1" to the function menuOnOff(e), and insert it into the hiding code using the variable "e", but it doesn't work, just comes up with an error on the status bar in the browser. Any ideas?
cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM