var CATERGORY = CATERGORY;
var THISCAT = document.getElementById(CATERGORY);
if (THISCAT.style.display == "block")
{
THISCAT.style.display = "none";
}
else
{
THISCAT.style.display = "block";
}
var NOTTHISCATi = 1 ;
while(NOTTHISCATi != 999)
{
if(NOTTHISCATi != CATERGORY)
{
var NOTTHISCAT = document.getElementById(NOTTHISCATi);
NOTTHISCAT.style.display = "none";
}
NOTTHISCATi++;
}
This is the coding... it s actually for a navigation menu which I wrote. How it works is almost the same like this one menu (http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm).
The one above is seperated into 2 parts- 1 is for the menu to open up... the other is to look for all the menu that is not the same id as the currently opened and close em.
i got an error message when I test it on IE6. I track it down and it leads to this:
var NOTTHISCAT = Document.getElementById(NOTTHISCATi);
NOTTHISCAT.style.display = "none";
anyone can help on what is wrong? i m confused.
Nisovin >> tried- and then the menu stops working. btw- what do u mean by string?
ok- ive seen posts about this and none of them helped me. i use firefox- and i have just updated the browser. now youtube wont work. so i downloaded the adobe flash it needs and it still wont work- so i enable java and javascript in the tools>preferences menu and it still doesnt work. ive even deleted firefox off my computer entirely and brought it back and it still doesnt work. but on any other computer in my house- youtube works fine. ive tried everything i can think of- someone please help me. thank you.
Can someone tell me why this wouldn;t let me set the background color of a page with the Body s id="test"
document.getElementById("test").style.backgroundColor="red";
that should read...
Can someone tell me why this wouldn;t let me set the background color of a page with the Body s id="test"
document.getElementById("test").style.backgroundColor="red";
document.getElementById("test").style.backgroundColor="red";
I ve gone into the settings and enabled javascript but it doesn t work. Kids can t play some games- I can t listen to some music.
I have java sofware- and it s been updated. I can t open some links too. The window will open but nothing displays.
No comments:
Post a Comment