Cross browser DHTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Web Master

    #1

    Cross browser DHTML

    The following works in Internet Explorer 6 and Opera, but not Netscape 7.1.

    Is there any way to make this work in all three browsers?

    <html>
    <head>
    <title>Menu</title>
    </head>
    <body>
    <div style="position : absolute; left: 250; top: 172; width: 62; height: 115"
    id="dv1">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
    collapse" bordercolor="#1 11111" width="100%" id="tb1"
    onMouseover="tb 2.style.visibil ity='visible';"
    onMouseout="tb2 .style.visibili ty='hidden';">
    <tr>
    <td width="100%" bgcolor="#0000F F"><b><font size="4"
    color="#FFFFFF" >Menu</font></b></td>
    </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
    collapse" bordercolor="#1 11111" width="100%" id="tb2">
    <tr>
    <td width="100%" bgcolor="#00FFF F">Item 1</td>
    </tr>
    <tr>
    <td width="100%" bgcolor="#00FFF F">Item 2</td>
    </tr>
    <tr>
    <td width="100%" bgcolor="#00FFF F">Item 3</td>
    </tr>
    <tr>
    <td width="100%" bgcolor="#00FFF F">Item 4</td>
    </tr>
    <tr>
    <td width="100%" bgcolor="#00FFF F">Item 5</td>
    </tr>
    </table>
    </div>
    <script>
    tb2.style.visib ility="hidden";
    //tb2.style.visib ility="visible" ;
    </script>
    </body>
    </html>


  • Web Master

    #2
    Re: Cross browser DHTML


    "Lasse Reichstein Nielsen" <lrn@hotpop.com > wrote in message
    news:1xw99dut.f sf@hotpop.com.. .[color=blue]
    > "Web Master" <web@master.org > writes:
    >[color=green]
    > > The following works in Internet Explorer 6 and Opera, but not Netscape[/color][/color]
    7.1.[color=blue]
    >[color=green]
    > > Is there any way to make this work in all three browsers?[/color]
    >
    > Everywhere it says "tb2.style.visi bility=..." you should change it to
    > "document.getEl ementById('tb2' ).style.visibil ity=...".
    >[/color]
    Thank you!


    Comment

    Working...