Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts

    Netscape vs. Mozilla

    Hello all...

    Any ideas why a javascript would work in Netscape and not in Mozilla? I thought the two interpreted javascript in the same manner... I'm a beginner at this, so I'm just looking for ideas or tutorials that could help me get started, I'm using a DD script and would like to learn how to deconstruct it and make it work.

    Thanks for your help, if you're curious about the specific problem, the page is http://richardmedek.com.

    -Rich

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Rich;

    There is no javascript on the index page you posted or the next page (current).
    Is this a scavenger hunt type of thing?

    .....Willy

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    whoops, sorry, it's external Here's the link, it's a DD slideshow script:

    http://richardmedek.com/slideshow.js

    Thanks,

    Rich

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    It seems to work for me. What moz version are you running? What does the JavaScript Console say?
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    When you mention Netscape, you have to specify the version. NS4.x is totally different with NS6+

    NS6+ and Moz are both based from Gecko while NS4.x is based from old Netscape engine.

  • #6
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    ... everyone's patience w/ me is greatly appreciated

    I'm using NS 7.1 and Moz 1.6, both for Mac OS X. The JS console doesn't give me any errors when I view the page. The script starts with an image, then fades to another, then another. Works in NS and IE win, so I'm surprised it wouldn't work in Moz. Are there differences in the way current versions of the browsers interpret JS?

    -Rich

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Shouldn't be especially much of a difference. It a WFM in FireFox 0.8 (which should be equivalent to Moz1.6) for me.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #8
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    What is WFM? Sorry, I'm new to this...

    In Firefox 0.8 (mac) it doesn't work for me either...

    -Rich

  • #9
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    WFM = Works For Me

    It works in firefox 0.8, and moz 1.6 on the win side. (fade)
    It works in op7.5 on both platforms. (no fade)
    It works in msn/osx, saf1.2 on mac. (no fade)
    It does not work in moz 1.6 or firefox 0.8 on mac. (should fade?)

    So, why might this be?

    Try alerting values you set in the script before and after their setting, including types. Do the same to assure that the elements you are working with are the right ones.




    On a second note, you're using opacity in moz, but not in saf. Saf1.1 supports a property -khtml-opacity and saf1.2 supports opacity.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #10
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <--secretly wishes they would all bloody call opacity the same thing
    stupid having to set it for each browser.

  • #11
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Garadon:
    Mozilla calls it -moz-opacity for two reasons:
    One: It wasn't a CR, PR or Rec when they included it.
    Two: Now that it is a CR, they still call it -moz-opacity because it's buggy.

    Safari called it -khtml-opacity before [CSS3Color] became a CR and opacity afterwards, for the same reason as reason one for Mozilla. This pattern of vendor-specific naming for non-recommendation properties is W3C sanctioned.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #12
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Thanks everyone for your help, and especially for the safari tip...

    I am a complete newbie at the entire Javascript thing, but now that I have some info I can hit the tutorials with a mission Any recommendations?

    -Rich

  • #13
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, I do keep a nice little list, though it may take some time to sift it through...
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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