开发者

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

开发者 https://www.devze.com 2023-04-09 01:48 出处:网络
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 orderIf I were to do this I\'d probably use

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

精彩评论

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