PDA

View Full Version : Please Help...


esntric
09-05-2002, 04:02 PM
I have a Frame set at 0%, into it loads music. It is positioned inside of the Frame at the top, where a banner would be. When someone enters the site a song begins to play. When someone clicks a link in the Navigation Frame, I want it to of course open a new page into the Main Frame, but, I want each new page loading into the Main Frame to play a different song.
How do I make the link both open a new page into the Main Frame, and open a new page into the Music Frame?
Can I use a redirect on the new page in the Main Frame to redirect the Music Frame to a new page?
Can I use a pop-up on the new page in the Main Frame and target the pop-up into the Music Frame?

How can I do it?

If I put the music on the new page loading into the Main Frame then both of the songs will play. The one that is currently playing when someone enters the site which is located in the MUsic Frame at the top, and the one in the new page in the Main Frame.

welo
09-05-2002, 06:20 PM
Why not just get rid of the music frame and cause the pages to play music onload?

esntric
09-06-2002, 07:35 AM
Well, I created the Music Frame so that I could put a link in the Navigation Frame to turn off the music, which when clicked loads a blank page into the Music Frame.
If I put the music on the new page loading into the Main Frame, then theres no easy way for me to create a way for the visitor to turn off the music. right?
I have another question for a solution: Can I use a normal link to open the new page into the Main Frame, and add the OnClick function to it and target the OnClick?

<a target="frame3" onClick="window.open('test1.html','Test','scrollbars=no,width=1,height=1');" href="test2.html" target="frame1">Test</a>

I thought something like that, but it just makes a pop-up when clicked and doesnt load into the targeted Frame.
Is there a way to target that?

esntric
09-06-2002, 12:10 PM
Nevermind, I got it.

<a href="Test1.html" target="Frame3" onClick="parent.Frame1.Frame6.location='Test2.html'">Test</a>

Thanks anyway. ;)