SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Aug 1999
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using layers in a site. Everything works fine in IE. It works ok in Netscape except when the browser is resized the layers get out of placed as well as the text in the layers in misplaced as well.
    I know there are cross browser issues with layers but, I do know this can work.
    Any suggestions?
    TIA

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There is a known bug in Netscape with resizing and the positioning of layers and the use of CSS. The only fix at this time is to force a reload of the page every time a user resizes their Navigator Window. Netscape knows about this bug but has chosen not to address it and several other serious CSS related bugs in the 4.x generation of software. If you look at several different DHTML sites they all post solutions to force the resize. These include: http://www.bratta.com http://www.lycos.com/webmonkey http://wdvl.com
    and others. If you don't find the answer then I will send you a solution I use once I get home to my personal workstation and can access my code.

    ------------------
    Wayne Luke

    The Majormud Encyclopedia - www.bloodquest2.com
    Come Play one of the hottest games on the net.


  3. #3
    SitePoint Member
    Join Date
    Aug 1999
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the script would be great if you have it handy. Thanks.

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    actually its fairly simple.... just wanted to be at my own workstation to make sure I got it right.
    First there is some browser sniffing :
    // BROWSER SNIFFER (Sniff out the good and bad browsers)

    function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie = (agent.indexOf("msie") != -1);
    this.ie3 = (this.ie && (this.major == 2));
    this.ie4 = (this.ie && (this.major >= 4));
    this.op3 = (agent.indexOf("opera") != -1);
    this.win = (agent.indexOf("win")!=-1);
    this.mac = (agent.indexOf("mac")!=-1);
    this.unix = (agent.indexOf("x11")!=-1);
    }

    var is = new Is();

    then :
    onResize="if(is.ns4) {history.go(0)}"


    This code comes from the Wandering Eye tutorial located at www.htmlguru.com so I am must give credit where credit is due.

    ------------------
    Wayne Luke

    The Majormud Encyclopedia - www.bloodquest2.com
    Come Play one of the hottest games on the net.


  5. #5
    SitePoint Member
    Join Date
    Aug 1999
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found a fix. Pretty simple if I would have thought about it. I am using a simple reload on resize script. If anyone needs the script I'd be happy to send it just send e-mail to me asking for it.
    pigs3@earthlink.net


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •