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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adelaide, South Australia
    Posts
    150
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Scripting for Audio - NS7, Mozilla and IE6

    I seem to be having trouble writing the audio scripting for new browsers IE6, Mozilla1.1 and Netscape7 ... partic the latter 2. I have always tended to use what I thought were two very basic scripts for the older version browsers...

    (a) For a 'hidden' player...
    <bgsound src="waltzma.mid" HIDDEN=TRUE HIDDEN=AUTOSTART loop="true"><embed src="waltzma.mid" HIDDEN=TRUE HIDDEN=AUTOSTART loop="true">

    (b) For a 'visible' player...
    <center><noembed><BGSOUND SRC="waltzma.mid"></noembed><embed SRC="waltzma.mid" AUTOSTART=TRUE height=46 width=145 LOOP="true"></embed>

    The Netscape and, I assume Mozilla clone of Netscape, go shooting me off to find a plugin... (I think my Netscape 4.7 uses 'Beatnik' as its player and I have no problems with that version)

    Soooo I downloaded and installed those 2 main players rec at the NS Plugin site (QuickTime and WinAmp) and still cannot get either browser (NS7 and Mozilla) to play the site .mid or .wav files when visiting my test sites... or other sites I have had no previous troubles when using either of the above 2 scripts.

    Refer these 2 test sites:
    http://www.geocities.com/aussiecards...-script-1.html
    http://www.geocities.com/aussiecards...-script-4.html

    I guess my questions are...
    Firstly is it my OWN browsers that cannot hear the midi files on the above sites coz I've not set them up properly... OR...
    Can anyone please help me with both visible and hidden audio scripts that will be compatible with all 3 browsers (assuming IE4+ and NS4+ will be ok too) AND/OR, send me to a few good tut sites that might set my scripting straight. I am usin Win98 at present and IE6 is set as the default browser.

    Sincere thanks.

    KB...
    To escape criticism - do nothing, say nothing, be nothing. . . Vaya Con Dios

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    You can embed an instance of Windows Media player through <object>, it should work in Moz/NS7.

    And BTW, I think you are a little confused about Moz vs NS7. NS7 is based off of Mozilla 1.0.1. Netscape is a branded version of Mozilla, while Mozilla is the open-source project that creates the code.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adelaide, South Australia
    Posts
    150
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by jkd
    I think you are a little confused about Moz vs NS7. NS7 is based off of Mozilla 1.0.1. Netscape is a branded version of Mozilla, while Mozilla is the open-source project that creates the code.
    Yes, being a newbie jkd, I wrongly assumed that Netscape was the 'Poppa Bear'. Thanks for the correction, my friend.

    To clarify your advice..."You can embed an instance of Windows Media player through <object>, it should work in Moz/NS7." I'm going to have to ask you exactly what that means and how the codes I used in my examples, would need to be amended.

    Regards
    KB...
    To escape criticism - do nothing, say nothing, be nothing. . . Vaya Con Dios

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Actually, I made a mistake about embedding WMP through <object>.... it would be an ActiveX object, and release builds of Moz shouldn't be supporting those kind of things until 1.2, if ever (but I believe you can compile ActiveX support in if you wish)...

    I've never had the need to embed audio in a page... so, I don't know what to now that I think about it.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    HIDDEN=AUTOSTART will probably throw an error. It should be AUTOSTART=TRUE HIDDEN=TRUE
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adelaide, South Australia
    Posts
    150
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by zoobie
    HIDDEN=AUTOSTART will probably throw an error. It should be AUTOSTART=TRUE HIDDEN=TRUE
    Thanks zoobie...

    I have changed the code to your suggested one, both work but I agree yours seems better... however it still doesnt load in my NS7. I am convinced theres something wrong with my set up.
    If you (or anyone else) has NS7 could you please tell me if you hear the wav on this test site... and if so, which player does your browser use?

    http://homepages.ihug.com.au/~dww8/s...-script-c.html

    Cheers!
    KB
    To escape criticism - do nothing, say nothing, be nothing. . . Vaya Con Dios


  •  

    Posting Permissions

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