December 23, 201015 yr Hi everyone and anyone who reads this post, and Merry Christmas, This link will take you where i have made a small gallery to insert into a web page. http://www.justsomediahouse.co.uk/sittingspiritually/index.html I have used some jquery fading to get the transitions between the images. My problem is that the owner of the site wants each picture to link to a certain page of his site. When the images are in transition there is a spot where the links switch over to the new image, but if you click to early you will be taken to the previous images link not the new one. Click the link and have a go. I have somewhere seen a list of values you can use with jquery for the speed of transition, timeout etc. Are there a set of values I can insert into the script to fix this a href transition problem? Any help with this would be greatly appreciated as I'm a bit lost when it comes to jQuery. Surya (Fathernugen)
December 23, 201015 yr Okay well a solution to this, since we're assuming javascript is enabled (because we're using jquery obv), why not either have a onclick="window.location="http://link.com"?'>http://link.com"? Or if you don't want loads of inline javascript, set the link as a rel="http://link.com" and do $('#banner img').click(function(){ window.location = $(this).attr('rel'); }); And obviously in the css have #banner img { cursor:pointer; } so they can see it's clickable Hope I might've helped.
Create an account or sign in to comment