How To Add Link To Each Image In The Slideshow?
I used the code from 'Why is this slideshow flickering?' which peter has given for one of your answers in the web-site, it works perfectly fine without any flicker, but my question
Solution 1:
After this:
$("#slideShow").prepend($("<img/>").attr("src",url));
Try adding this
$('#slideshow img').wrap('<a href="location" />');
You will need to change location to where you want the link to go
Solution 2:
On your line here:
$("#slideShow").prepend($("<img/>").attr("src",url));
(I really don't know JQuery or what ever this is, I do understand Javascript + HTML, however)
Could you add a:
.attr("onClick",JAVASCRIPTNAMEHERE)
To the end?
$("#slideShow").prepend($("<img/>").attr("src",url).attr("onClick","window.Navigate('www.Google.com')");
Solution 3:
instead of
$("#slideShow").prepend($("<img/>").attr("src",url));
try using
$("#slideShow").prepend($("<a href='" + url + "'><img src='" + url + "' /></a>"));
HTH
Post a Comment for "How To Add Link To Each Image In The Slideshow?"