We can have sound files (music) carry over seamlessly page-to-page, forward and backward, by putting the url for the first page in the sequence in frameset code.
- 1. Build a frameset webpage with just the code seen below. Name the page whatever you want.
- 2. Install the url for the first page with music - the start page in the series - where indicated in the frameset page code below. The frameset page will be used as the start page then.
- 3. The sound file is put on the opening page, not the frameset page. Provide enough loops so it will continue over a number of pages.
PUT THIS CODE ON THE FRAMESET PAGE FOR WEBTV ONLY COMPATIBILITY
- 4. Unless you wish the sound file to change at some point in the series of pages, do not include sound files on the pages in the linked series.
- 5. If you want the music to change at some page, then install a new sound file on the chosen page. When reached, the music on that page wll play and continue to play seamlessly on subsequent linked pages.
- 6. The title of the frameset page will override any title on the pages in a linked series. If you want the title to change at some page, then install this code on the chosen page:
<head><script>
window.status=‘Title Here';
</script></head>
The new title will then appear on subsequent pages until the title script is used again. Then that title will continue, etc.
- 7. The sound file will play seamlessly page-to-page and when the "back" button is hit as well.
- 8. Any page in the linked series can be taken out of frames and will open without the music carryover by putting target=“_top" in the link anchor:
<a href=“http://url_to_page.html" target=“_top">link to page</a>
COMPUTER COMPATIBILITY
In order for pc users to also be able to hear the seamless sound, put the music file on a web page by itself. Put the sound file in <embed> and <bgsound> so it will work on most browsers:
MUSIC FILE PAGE
Then include the music page in the frameset page so that there are two frames:
PUT THIS CODE ON THE FRAMESET PAGE FOR WEBTV AND PC COMPATIBILITY
CODE NOTES
€The row attribute now must accommodate two frames. Using astericks (*) instead of a percent (%) allows the browser to assess the page content and set the required amount of space. Could also use:
<rows“99%,*"> or <rows=“99%,1%">, for example... or <cols=“*,*”> etc.
€Scrollbars can detract from page appearance on a pc. If the first frame fits on the screen, adding scrolling=“no" in the tag will eliminate the scrollbar. And scrolling=“no" should be added to the frame with the music page.
€Since the page with the sound doesn't have any html content, it will show as a line. Using <border=“0” framespacing=“0” frameborder=“no”> in the frameset tag will mask the line so that it will not appear between the frames.
Copyright © 1999 - Ty_Tutes by Tyhart All Rights Reserved
|