I’m using jQuery Blinds Slideshow as image slider. I want to redirect the first sliding image to http://google.com when I click on it. I use a html tag like this:
<div class="slideshow">
<ul>
<li><a href="http://google.com"><img src="lemons/1.jpg" alt="lemon" /></a></li>
<li><img src="lemons/2.jpg" alt="lemon tea" /></li>
</ul>
</div>
<a href="#" onclick="$('.slideshow').blinds_change(0)">1</a>
<a href="#" onclick="$('.slideshow').blinds_change(1)">2</a>
but it doesn’t work.
My question is how can I redirect the first sliding image to google.com when I click on it ?
Thanks in advance.
Here is something quick and dirty I cooked up modifying the original jquery-blinds.
Put it in a new JS file and call it jquery.blinds-0.9-with-hyperlinks.js or something and include it in place of the current jquery-blinds code.
It should work with the HTML you posted above. It simply checks if any of the images are wrapped in an ” tag and if it is, makes the image redirect to that link on click.