开发者

Persistent URLs with a jQuery Slider

开发者 https://www.devze.com 2022-12-12 08:10 出处:网络
I\'ve created a simple jQuery slider for my web开发者_Python百科site, and I was wondering if it\'s possible to assign a URL for each pane.

I've created a simple jQuery slider for my web开发者_Python百科site, and I was wondering if it's possible to assign a URL for each pane.

For example /index.html#about will slide to the about tab by default.

Many thanks for your help and responses.


Try extending this:

http://www.stilbuero.de/jquery/history/


It could be done programatically in JavaScript (with jQuery). You should parse the page URL (from document.location), extract everything after "#" and use this data to initialize your slider.

0

精彩评论

暂无评论...
验证码 换一张
取 消