开发者

how can i change listing order of my ul li list for each page load using jquery

hi i am using prevnext jquery 开发者_Go百科slider . Now on each page load the sliding starting from the first list. Is there any way to list items in random order


If I were to do this I'd probably use a query string idea i.e. http://www.mysite.com/index.html?1 , so I'd do:

var windowLocation = window.location.split("?");
if(windowLocation[1] === 1){
//show 1 slide
}else if(windowLocation[1] === 2){
//show another slide first
}

And so on...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜