#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    3
    Rep Power
    0

    CSS2/viz & NavCom v4.7 Mac problems


    Trying to understand CSS2 visibility options. The following code works perfectly with IE 4.5+ on Mac, but when viewed with Netscape Communicator v4.75, both img are visible. Does that version of Communicator for the Mac not support CSS2, or is there something wrong with my code?

    Thanks.

    <head>
    <title>viz test</title>
    <style>
    <!--
    .gone {visibility: hidden}
    .here {visibility: visible}
    -->
    </style>
    </head>
    <body>
    <div style="color: red">test</div>
    <img src="mA.gif" width="200" height="200" class="here" usemap="#bA">
    <img src="bA.gif" width="200" height="200" class="gone" usemap="#bA">
    <map name="bA">
    <area shape="rect" coords="57,36,144,133" href="fillerA.html" >
    <area shape="rect" coords="57,36,144,133" href="fillerA.html" >
    </map>
    </body>
    </html>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Location
    Dublin
    Posts
    413
    Rep Power
    14
    Try using visibility:show; and visibility:hide;
    - these are certainly the properties set using javascript for layers
    - and a workaround using layers to contain the images would be easy enough...

IMN logo majestic logo threadwatch logo seochat tools logo