jQuery Slider Help

Hello,

I am using slider from this site : http://slidesjs.com. Its working OK however I am to make the
 "view collection" link to be relevant to the current slide?

However I am having no luck in this. Please can someone help?
Thanks
 

http://www.groomup.com/www/giftnew/gellary.html

Open in new window

dairaAsked:
Who is Participating?
 
ChrisCommented:
This should do the job for you. You will need to ensure that the 'view collection' link has an id of view-collection.

You also need to add to each slide div a "title" attribute with the url to the specific item. You can either add the absolute url however a relative url will work fine.
$(function(){
	$('#view-collection').click(function(){
		$('.slide').each(function() {
			if($(this).css('display') == 'block') {
				window.location = $(this).attr('title');
			}
		});
	});
});

Open in new window

0
 
dairaAuthor Commented:
thanks I will check and let you know
0
 
dairaAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.