View Full Version : problem with href link and trying to make it do double duty

10-14-2011, 10:55 PM
1) Project Details: (be as specific as possible):


I have a link that has an mp3 sound as its href:

<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=#greenhouse) so that the sound plays on that part of the site.

Here is the code context for the href links I mention above (just one sample!). You can see that I have a jPlayer in place providing the container for the sections:

<article id="page_5">
<div class="box" id="page4">
<a href="#page_1" class="close"></a>
<div class="wrapper pad_bot1">
<div class="grid_14">
<div class="tabs2">
<div id="jquery_jplayer"></div>

<!-- Using the cssSelectorAncestor option with the default cssSelector class names to enable control association of standard functions using built in features -->

<div id="jp_container">
<ul class="nav grid_17 prefix_2 omega">
<li><a href="sounds/genealogy.mp3" class="track track-default">alien genealogy</a></li>
<li><a href="sounds/translation.mp3" class="track">alien texts translation</a></li>
<li><a href="#dombo">future life regression </a></li>
<li><a href="#horticulture">alien removals</a></li>
<li><a href="#clips">want to date an alien?</a></li>

<div id="greenhouse" class="tab-content grid_17 prefix_2 omega">
<div class="wrapper">
<span class="left marg_right1">
<a><img src="images/HANDanimation.gif" alt="" width="137" height="110"></a>
<p class="color1">Are you related to aliens? Do you think you might be?</p>
<p class="pad_bot2"><font color="white">Using patented A.G.T. (Alien Genealogy Technology®)...</p>
<div class="pad_bot1">

The first href (in green)
href="sounds/genealogy.mp3" class="track track-default" links to the first sound file, but it should ALSO link to the href="#greenhouse" (in red).

I have tried
<a href="sounds/genealogy.mp3" class="track track-default" onClick="location.href = '#greenhouse';">alien genealogy</a></li> and variations thereof, but no go.

I am looking for the easiest fix here, please (so it does not mess with the jPlayer), and it needs to be cross-browser (Firefox, IE 7-9, Chrome, Safari)...

$40 US to someone who can get this right? via paypal...
2) Payment method/ details (Paypal, check? Timeline?):

10-15-2011, 07:04 PM
I've sent you a pm.

10-22-2011, 07:07 PM
This problem has been resolved. Thanks!