473,503 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

show("div6")

I have the following Javascript.
function show(d){
if(obj=document.all(d)) obj.style.display=""
}
The html then callsd 'show("div6"). But, what is ("div6") and where it
is defined? I know "div6" is a menu, but I don't know where it is
defined.

<a href="#" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image56','','images/top-1_03.gif',1)">
<img src="images/top_03.gif" name="Image56" width="97" height="21"
border="0"></a></TD>
<TD class=flyoutLink
onMouseOut='hide("div6")'onMouseOver='show("div6") '>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #1
1 1185
eddie wang wrote:
I have the following Javascript.
function show(d){
if(obj=document.all(d)) obj.style.display=""
}
This function will fail on browsers that do not support the document.all
collection (any Gecko based browser - Mozilla, Firefox, Camino, Netscape 4,
any KHTML based browser, etc).
The html then callsd 'show("div6"). But, what is ("div6") and where it
is defined? I know "div6" is a menu, but I don't know where it is
defined.


"div6" isn't defined anywhere in the code you showed us. Presumably it's
the ID attribute of a <DIV> HTML tag, you'd have to put it on your page as:

<div id="div6">Some text</div>

for the function above to do anything.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.