hi everyone,
i would love some help on this problem as i am pretty new to javascript. i have a workable content slide/scroll that contains a bunch of pictures, which are themselves links to separate html pages with the same content slider. what i am trying to achieve is that when i click on an image link in the content slider and it brings me to the new page, i would like that image link that i last selected to be at the top of the content slider.
here's the html code for the anchor tag and the script for slider.
<a id="duck5" href="duck5.html" ><img src="images/duck5_tn.jpg" width="171" height="101"></a>
<script>
$(window).load(function() {
$("#mcs_container").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes","yes",10);
});
</script>
so how would i incorporate $(#mcs_container).scrollTo("#duck5"); ?
thanks for any help.