Why doesn't this work on Netscape 7.1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Wisnia

    #1

    Why doesn't this work on Netscape 7.1

    I'd enjoy learning why this piece of javascript code which I cribbed a
    couple of years ago (It creates a trail of bubbles following the mouse
    pointer.) works fine in IE 6.0 and Netscape 4.79, but doesn't do its
    thing when under Netscape 7.1?

    I've viewed javascript "test pages" on Netscape 7.1, and they seem to
    work ok, so I'm presuming there's something obsolete about the code in
    this page of mine:



    Thanks guys,

    Jeff

    --

    Jeff Wisnia (W1BSV + Brass Rat '57 EE)

    "If you can smile when things are going wrong, you've thought of someone to blame it on."

  • Randy Webb

    #2
    Re: Why doesn't this work on Netscape 7.1

    Jeff Wisnia wrote:[color=blue]
    > I'd enjoy learning why this piece of javascript code which I cribbed a
    > couple of years ago (It creates a trail of bubbles following the mouse
    > pointer.) works fine in IE 6.0 and Netscape 4.79, but doesn't do its
    > thing when under Netscape 7.1?[/color]

    Because its IE and NN4.xx specific code that relies on browser detection
    to run. And it incorrectly assumes that Netscape 7's DOM is the same as
    Netscape 4's based simply on the word "Netscape" being in the userAgent
    string.

    Open your page, in NS7, go Tools>Web Development>Jav ascript Console
    [color=blue]
    > I've viewed javascript "test pages" on Netscape 7.1, and they seem to
    > work ok, so I'm presuming there's something obsolete about the code in
    > this page of mine:[/color]

    Lots of obsolete things, the most obsolete being browser detection based
    on userAgent strings




    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Alan P

      #3
      Re: Why doesn't this work on Netscape 7.1


      "Jeff Wisnia" <jwisnia@conver sent.net> wrote in message
      news:qpqdnWi5x9 J3qI7dRVn-tw@comcast.com. ..[color=blue]
      > I'd enjoy learning why this piece of javascript code which I cribbed a
      > couple of years ago (It creates a trail of bubbles following the mouse
      > pointer.) works fine in IE 6.0 and Netscape 4.79, but doesn't do its
      > thing when under Netscape 7.1?
      >
      > I've viewed javascript "test pages" on Netscape 7.1, and they seem to
      > work ok, so I'm presuming there's something obsolete about the code in
      > this page of mine:
      >
      > http://home.comcast.net/~jwisnia18/jeff/bubbletrail.htm
      >
      > Thanks guys,
      >
      > Jeff
      >
      > --
      >
      > Jeff Wisnia (W1BSV + Brass Rat '57 EE)
      >
      > "If you can smile when things are going wrong, you've thought of someone[/color]
      to blame it on."[color=blue]
      >[/color]

      Could you please format the code properly as well :-( zero layers of
      indentation and brackets seemingly randomly placed make not easy debugging
      do


      Comment

      • DJ WIce

        #4
        Re: Why doesn't this work on Netscape 7.1


        : http://home.comcast.net/~jwisnia18/jeff/bubbletrail.htm

        You could also make it work in the corner, now you get scrollbars.. that's
        not nice to get scrollbars for a cursor animation, is it?

        Wouter


        Comment

        Working...