/    Sign up×
Community /Pin to ProfileBookmark

Single hyperlink to multiple hyperlinks

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

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisOct 05.2003 — 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?
Copy linkTweet thisAlerts:
@marcuslaytonauthorOct 05.2003 — 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
Copy linkTweet thisAlerts:
@gil_davisOct 05.2003 — Maybe something like this?
&lt;a href="the URL of the MP3" onclick="window.location.href='the URL of the lyrics'"&gt;whatever&lt;/a&gt;
×

Success!

Help @marcuslayton spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...