In the following function:
function showMenu(theMen u, theAction) {
if (document.getEl ementById)
{document.getEl ementById(theMe nu).style.visib ility = theAction;}
else {if (document.layer s) {document.theMe nu.visibility = theAction;}
else {document.all.t heMenu.style.vi sibility = theAction;}}
}
Will the passed value of theMenu be substituted in the last 2 lines or
will it use "theMenu" as the value?
The following words are in the last line:
document
all
theMenu
style
visibility
Since all are reserved words except for "theMenu" is that term
changable?
Do I have to use the following:
eval("document. all."+theMenu+" .style.visibili ty")
I have no way to test it.
--
Dennis Marks
To reply change none to dcsi.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
function showMenu(theMen u, theAction) {
if (document.getEl ementById)
{document.getEl ementById(theMe nu).style.visib ility = theAction;}
else {if (document.layer s) {document.theMe nu.visibility = theAction;}
else {document.all.t heMenu.style.vi sibility = theAction;}}
}
Will the passed value of theMenu be substituted in the last 2 lines or
will it use "theMenu" as the value?
The following words are in the last line:
document
all
theMenu
style
visibility
Since all are reserved words except for "theMenu" is that term
changable?
Do I have to use the following:
eval("document. all."+theMenu+" .style.visibili ty")
I have no way to test it.
--
Dennis Marks
To reply change none to dcsi.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Comment