View Full Version : What do I need to do to keep music from starting over when a link is clicked?


stinka
10-30-2004, 06:10 PM
Ok, here is my scratch layout: http://suchandsuch.diary-x.com/journal.cgi?template=scratch&entry=lorem

But if you scroll down and click on a link, you will see that everytime you click on a link, the music restarts all over. Does anyone know what I can do the portion that includes the date, time, entry data, and links? I'm thinking I need to create a seperate frame or something but I don't know how. Is there any other alternative to get the music to not start all over when a new link is clicked on? And is there a way I can get the music controls in a different frame (but I still want them to be in the same location) so that everytime a link is clicked the music doesn't start over?

If anyone has any ideas about what can be done, please let me know. & if you could provide me with an example code or something, that would be even more helpful. Thx.

**EDIT: Also if a frame is created, how do I position it so that my body is in the same position as it is now?

kittycat
10-30-2004, 08:33 PM
You could use a simple frameset with two rows. Have one row be 1px in height, the other take up the rest of the page. In the page that's in the smaller row, stick the code for the music (and remove it off the main page)

<html>
<head>
<title>My Page</title>
</head>
<frameset rows=1,*>
<frame src="music.html" name="top">
<frame src="maincontent.html" name="bottom">
</frameset>
<body>
</body>
<noframes>
<a href="your main page.html">Click Here</a>
</noframes>
</html>