SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot LunaC's Avatar
    Join Date
    Feb 2001
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hide a Javascript from netscape 4

    I know I should know how to do this, but for the life of me I can't figure it out.

    What I need to do is hide (not load at all preferably) a javascript from netscape 4. It works fine for all others(hmm... it's probably best to hide it from Mac IE5 as well, I think they have a problem with the same thing.)

    The script itself works, but that poor old browser can't load the css properly so it's best to not show the entire thing. (absolute positioned div on the right side ) I know I can hide the styles for it using @import, but then it falls over to the left... other than absolute right, there's no good spot for it.

    While I'm on it, is there a way to not load an entire div (including the javascript that's called inside it) from NS4?

    Grrr... tables are looking good again

  2. #2
    SitePoint Zealot jonsteele's Avatar
    Join Date
    Jan 2001
    Location
    Toronto
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to hide code from NN4...

    Code:
    if(!document.layers){
    //all non-NN4 code here.
    }
    So if you are calling a function which fails in NN...

    onEvent="if(!document.layers){myFunction()}"

  3. #3
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HEY - is that a new mysql logo?

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  4. #4
    SitePoint Zealot jonsteele's Avatar
    Join Date
    Jan 2001
    Location
    Toronto
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's the new logo, yes.

  5. #5
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol - shush

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •