show("div6")

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eddie wang

    show("div6")

    I have the following Javascript.
    function show(d){
    if(obj=document .all(d)) obj.style.displ ay=""
    }


    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('Ima ge56','','image s/top-1_03.gif',1)">
    <img src="images/top_03.gif" name="Image56" width="97" height="21"
    border="0"></a></TD>
    <TD class=flyoutLin k
    onMouseOut='hid e("div6")'onMou seOver='show("d iv6")'>



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Grant Wagner

    #2
    Re: show(&quot;div6 &quot;)

    eddie wang wrote:
    [color=blue]
    > I have the following Javascript.
    > function show(d){
    > if(obj=document .all(d)) obj.style.displ ay=""
    > }[/color]

    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).
    [color=blue]
    > 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.[/color]

    "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 <gwagner@agrico reunited.com>

    * Client-side Javascript and Netscape 4 DOM Reference available at:
    *


    * Internet Explorer DOM Reference available at:
    *
    Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.


    * 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


    Comment

    Working...