| eabigelow |
Oct 13 2011, 03:06 PM
Post
#1
|
|
Newbie ![]() Group: Members Posts: 13 Joined: 24-August 11 Member No.: 15,242 |
Hi--
I have a link that has an mp3 sound as its href: CODE <a href="sounds/genealogy.mp3" class="track track-default">this is a link</a> Unfortunately, I also need that same link to go to a part on the site (href=#dombo) so that the sound plays on that part of the site. Does anyone know how to accomplish this? I am imagining it would be with javascript, but honestly, I do not know. Any help would be greatly appreciated. Many thanks...! This post has been edited by eabigelow: Oct 13 2011, 03:07 PM |
![]() ![]() |
| pandy |
Oct 13 2011, 03:47 PM
Post
#2
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 13,733 Joined: 9-August 06 Member No.: 6 |
You can. But I think you should keep the URL to the other page in the href and let JS do the mp3 bit (it's better that way if JS isn't available).
Just add CODE onclick="location.href = 'http://example.com'" -------------------- |
eabigelow A way to have a single link deliver TWO href? Oct 13 2011, 03:06 PM
eabigelow
You can. But I think you should keep the URL to t... Oct 13 2011, 05:25 PM
eabigelow Hi--
Many thanks for your reply. It is much appre... Oct 13 2011, 04:41 PM
pandy Add the onclick event handler to the A tag. Change... Oct 13 2011, 05:06 PM
eabigelow Perhaps I am doing it wrong? This is what I have t... Oct 13 2011, 05:35 PM
pandy No, it's I who am totally confused. For some r... Oct 13 2011, 05:44 PM
pandy I don't think this can be done in the way you ... Oct 13 2011, 06:41 PM
eabigelow Thanks so much for your replies and for giving thi... Oct 14 2011, 04:02 PM
pandy That's what I tried, directing a hidden iframe... Oct 14 2011, 04:44 PM
pandy Hey, if you add a time lapse between the loading o... Oct 14 2011, 06:50 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 07:05 AM |