#1
  1. No Profile Picture
    marco
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi !

    I've developed a site which is using layers. Netscape hast no problems to show them, but IE brings up a javascript error. Can someone help me?

    Here's the Code:
    <HTML>
    <SCRIPT TYPE="text/javascript">
    function test() {
    if (document.layers[0].visibility == "hide") {
    document.layers[0].visibility = "show";
    } else {
    document.layers[0].visibility = "hide";
    }
    }
    function init() {
    document.layers[0].visibility = "hide";
    }
    </SCRIPT>
    <BODY onLoad=init()>
    <FORM>
    <INPUT type=checkbox name=r1 onclick=test()>Radio1<br>
    <LAYER>
    <INPUT type=radio name=r2 >Radio2<br>
    <INPUT type=radio name=r3 >Radio3<br>
    </LAYER>
    </FORM>
    </BODY>
    </HTML>

    Ciao,
    Marco

    ------------------
  2. #2
  3. No Profile Picture
    Jalis
    Guest
    Devshed Newbie (0 - 499 posts)
    Microsoft IE does not support the documents.layers object. Instead, it supports:

    document.all

    Additionally, Netscape is the only browser supporting the <LAYER> tag. Use <DIV> instead.

    ------------------
    - Jalis

Similar Threads

  1. netscape 4 iframe with layers
    By ckandirali in forum HTML Programming
    Replies: 2
    Last Post: January 29th, 2004, 03:40 AM
  2. positioning layers in IE and Netscape
    By yoshimitsu in forum HTML Programming
    Replies: 2
    Last Post: October 9th, 2003, 08:43 PM
  3. CSS in Netscape 4.5 for mac - some probs
    By hannah in forum CSS Help
    Replies: 4
    Last Post: June 13th, 2001, 10:59 AM
  4. Layers and form elements not showing ($%&*# Netscape!)
    By VincentKyle in forum HTML Programming
    Replies: 8
    Last Post: June 4th, 2001, 01:23 PM
  5. Scrolling layers in Netscape
    By novusgrafika in forum HTML Programming
    Replies: 1
    Last Post: March 23rd, 2001, 05:45 PM

IMN logo majestic logo threadwatch logo seochat tools logo