Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 37 of 37
  1. #31
    Junior Member
    Join Date
    Dec 2009
    Posts
    16
    Member #
    20696
    The most common way people get music to play continuously even when pages are switched is to use a frameset. You put your music in an invisible frame and the rest of the site in a visible one. For example:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <frameset rows="100%,*">
      <frame src="main.html" /> <1-- this is where your website lives and operates from -->
      <frame src="music.html" /><!-- this frame has only the HTML required to start the music -->
    </frameset>
    </html>
    Mind you, you're risking annoying people by doing it this way. Since the frame where the music is playing is hidden, it becomes much more difficult to turn off the music. And a lot of people find music on websites incredibly annoying.

    Once you get it running in the frameset, then you can fiddle with JavaScript in the main page window to turn it on and off and so on. But the frames will get it so that the music continues to play even if they move to a new page on the site. Uninterrupted.

    And don't let anyone tell you that frames aren't valid. They are a valid part of the XHTML 1.0 specification. I included the Doctype in my code above.

  2.  

  3. #32
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    Jenn...

    He used an <iframe> instead. Same idea, and the results are terrific.
    Did you see his site?


  4. #33
    Junior Member
    Join Date
    Dec 2009
    Posts
    9
    Member #
    20678
    Hi Guys

    The client is concerned bout the loading times in the gallery section when you click on the certain dates. It take a while for images to load.

    Any ideas what the problem could be, i have optimized images for web??


    Thanks

  5. #34
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    That loading time is because of the actual Flash presentation.
    Other than eliminating the Flash, or having that script optimized in some way,
    not sure what you can do about it.

    Does the Flash script use a separate XML file for the list of photos?
    That might help, if the photos are not part of the actual Flash presentation.


  6. #35
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    well i could be rong but i dont see an implementation of the iframe that would help load time as well because it would only have to load the content on the framed page instead of the entire page. kinda two for one.

    while($get_it !== true){ continue; }

  7. #36
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,733
    Member #
    5580
    Liked
    718 times
    The iframe itself is not the issue, but the page (or Flash file in this case) that is
    loaded into the iframe is the problem. There is nothing wrong with the actual
    website that contains the iframe.


  8. #37
    Junior Member
    Join Date
    Dec 2009
    Posts
    9
    Member #
    20678
    Hi

    Could the server be an issue???


Page 4 of 4 FirstFirst ... 2 3 4

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:10 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com