Click to See Complete Forum and Search --> : Single hyperlink to multiple hyperlinks


marcuslayton
10-04-2003, 05:13 PM
I am struggling to find the information to find out how to do the following: I want to click on a hyperlink and them have it do two things. Start playing a mp3 file, and then go to a page that has the lyrics to it etc. A html hyperlink can do one or the other. I don't want to use a html or js onload instruction because I want to the the page transition effect available to ie. Help. Thanks

gil davis
10-05-2003, 05:16 AM
You won't be able to play the mp3 from the current page if you go to the page with the lyrics, unless you mean you want to open a new window for the lyrics, or the lyrics are in the same page, or the mp3 is played by the page that has the lyrics. This is because when you change pages, any music that you started playing will stop when a new page is loaded.

So, what do you really want it to do?

marcuslayton
10-05-2003, 11:33 AM
When you follow a hyperlink to a mp3 file, it automatically starts playing thourgh your default media player, automatically streaming in some cases. That is what I want, and then once that starts playing in the media player, I want to open a new page that has the pics and lyrics.

But I can't do a onload command, which does work, but cancels out the ie fade that is being done by the code
<meta http-equiv="Page-Enter" content="blendTrans(Duration=4.0)">

And an embedded command changes the page with a unmatching media player...

So I wanted help writing a javascript that when you followed one hyperlink, it did the work of two hyperlinks, just like you followed each hyperlink seperately. Thanks

gil davis
10-05-2003, 03:34 PM
Maybe something like this?
<a href="the URL of the MP3" onclick="window.location.href='the URL of the lyrics'">whatever</a>