www.webdeveloper.com
Results 1 to 11 of 11

Thread: Music/Frameset

  1. #1
    Join Date
    Dec 2002
    Posts
    4

    Music/Frameset

    How do I add a sound to a frameset so that when the page loads the songs plays throughout my website without interruption.

  2. #2
    Join Date
    Nov 2002
    Posts
    421
    assumning you are using a frameset to have one frame stay present (like a header), you could just put the background music in that header html page.

    <bgsound src="XXX.au" loop="-1">

    put the above in the head of the html (the -1 means forever). but bgsound only works in IE. I think you can use embed in NS. and put both in for both (I think).

  3. #3
    Join Date
    Nov 2002
    Posts
    631
    Shouldn't the loop be "infinite" instead of "-1". I would think that -1 would keep it from playing. I KNOW infinite works.

    Dave, I went to that site with the sound in a pop of window but the window kept refreshing and acting weird and stuff.

  4. #4
    Join Date
    Dec 2002
    Posts
    4
    Thanks for responding Dave, I went ahead and viewed your website, thats exactly what I'm looking for, with the exception of me needing multiple songs, I just need one song for my site. I'm a beginner with javascript. I didn't realize how complicated the script would be to accomplish my goal.

  5. #5
    Join Date
    Nov 2002
    Posts
    421
    Zach -

    As bgsound is an MS specific thing, I go by what MS wants. Front Page generates a -1 for play forever. So yes, it works.

  6. #6
    Join Date
    Nov 2002
    Posts
    421
    Dave -

    Worked great in IE6. In NS7 the jukebox says "no support" and does not work.

  7. #7
    Join Date
    Nov 2002
    Posts
    421
    seems to me that you are asking if the LiveAudio plugin is already available. unless it has already been loaded i would think this would fail on most NS implementations. you probably have it loaded on your V4 and not on your 6. and i sure don't have it loaded on my NS7. the plugin may work fine in NS7 - i just don't have it.

    i am sure i have seen a test for a plugin and if not there will download it (if the user accepts). not sure where i saw that example.

  8. #8
    Join Date
    Nov 2002
    Posts
    421
    i think it is codebase="http: . . . ", then if the plugin is not present it will attempt to download.

  9. #9
    Join Date
    Nov 2002
    Posts
    421
    wait -

    the above is for the object tag

    for the embed tag it is

    pluginspage=

  10. #10
    Join Date
    Dec 2002
    Location
    Lake Havasu City, Arizona
    Posts
    527
    (FRAME)
    One of the frame pages will stay open to serve all the other frame pages. Usually that would be the contents frame, (The one with the menu.) So put your music in it. It should play until you leave the site.
    Note:
    Music can be a sudden shock to someone that doesn't expect it to be there. Especially if the volume is too high. It might be better to give a choice to turn it on/off.

    (MUSIC)
    I think embed is now compatible in both browsers, and is preferable to bgsound. If you use both, you should code embed first, or the sound may be distorted.

    I use:
    <EMBED SRC="startrk.mid" volume="50" LOOP="false" hidden="true" WIDTH="100" HEIGHT="40" autostart="true">
    Last edited by jdavia; 12-30-2002 at 10:06 PM.

  11. #11
    Join Date
    Nov 2002
    Posts
    421
    Dave -

    So what was the resolution of the jukebox "no support" issue? I am curious about that one. After all, it was your first question in 2 years.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles