#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    30
    Rep Power
    12

    Question how to hide javascript from netscape??


    i have a website which looks great in IE6, but looks completely different in Netscape browsers.
    it is here:
    http://n2.squarepusher.info

    please check it in both Netscape and Internet Explorer
    i know whats causing it, its a javascript that loads random images on every re-load/re-fresh,
    (the 50px by 50px thumbnails on the home page)

    i 've realized that once i delete the 'random images script' then everything is a-ok in netscape.
    what i would like to know is how to just hide that scpecific script from netscape since it does not understand it.

    please help!
    thank you !!

    ~Zain
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    San Diego
    Posts
    11
    Rep Power
    0
    Have you tried placing the 'random image script' in a code block such as this:

    while(navigator.appName != 'Navigator')
    {



    }

IMN logo majestic logo threadwatch logo seochat tools logo