JQuery Cycle Plugin - Go to specific slide in other page -


in link:

http://www.contactarte.com.pe/test/page1.html

i wonder if possible click in page example slide4 button , go next page showing slide 4 in slider.

thanks lot !!

sure, change href include query string parameter indicate slide:

<a href="page2.html?slide=0">slide 1</a> <a href="page2.html?slide=1">slide 2</a> 

then change starting slide on page2 based on query parameter passed in:

$('#rotating-item-wrapper').cycle({     startingslide: (getparameterbyname('slide') || 0); }); 

using following function extract query string parameters (found here):

function getparameterbyname(name) {     name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");     var regex = new regexp("[\\?&]" + name + "=([^&#]*)"),     results = regex.exec(location.search);     return results == null ? "" : decodeuricomponent(results[1].replace(/\+/g, " ")); } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -