Web Analytics Made Easy -
StatCounter simple question on z-index(work on IE not FF) - CodingForum

Announcement

Collapse
No announcement yet.

simple question on z-index(work on IE not FF)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • simple question on z-index(work on IE not FF)

    The following code works on IE but not FF. I think is z-index problem but i'm not sure. This is a map on a layer that display things. Note: mm.gif is a transparent image, so it can be used as a map and still the content below can be seen. Thank you very much.

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Test on FireFox</title>
    <script type="text/javascript">
    function b(num)
    {
    document.getElementById("myLayer").innerHTML=num;
    }
    </script>
    </head>
    <body>
    <div id="myLayer" style="width:500;height:500;position:absolute;left:275px; top:15px;"></div>
    <div align="center">
    <table border="1" width="37%" id="table1" cellspacing="0" cellpadding="0">
    <tr><td>
    <p align="center">
    <map name="mapDiv" id="mapDiv">
    <area shape="rect" coords="0,0,250,250" onmouseover="b(1);">
    <area shape="rect" coords="250,0,500,250" onmouseover="b(2);">
    <area shape="rect" coords="0,250,250,500" onmouseover="b(3);">
    <area shape="rect" coords="250,250,500,500" onmouseover="b(4);">
    </map><img border="0" src="images/mm.gif" width="500" height="500" ismap usemap="#mapDiv"></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

  • #2
    Moz, correctly, needs measurement units

    style="width:500px;height:500px...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    Comment

    Working...
    X