jquery ui: ajax page + slider content

此生再无相见时 提交于 2019-12-24 16:29:50

问题


I want to make a content slider similar to this site, but a bit simpler.

This is what I came out with so far. But I am stuck:

1. I want to change the position of the slider handle when an ajax page is loaded. the width of #content-holder should be extended when the ajax page is loaded, from 1500px to 2000px (depends on how big the ajax page is).

2. the #content-holder should slide to the left when the ajax page is load so that this ajax page will always visible when it is loaded.

3. when the ajax page is closed. the slider handle should go back to the original position. and the width of #content-holder should be contracted back to the original (1500px).

You can read the code in my jsfiddle here.

Any ideas how I can achieve these 3 points?

Thanks.

来源:https://stackoverflow.com/questions/5738944/jquery-ui-ajax-page-slider-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!