开发者

change script: Loop through divs every 10 seconds PLUS select DIV

on the page Show and hide divs at a specific time interval using jQuery

there is a script to Loop through DIVs (show 1 DIV after the other whil hiding the others).

it#s called "Loop through divs every 10 seconds "

It works fine, but i need to select a special DIV with a click on a special button.

There are 3 DIVS with headline 1 - 2 - 3 (th开发者_JAVA技巧e active is RED) The Loop-Script changes the DIVs and shows them right. BUt whe click on 2 the DIV Nr. 2 should become active. (and the Loop should go on with Nr. 3 - 1 - 2....

Can anybody help?!?


here it is!

$(".button").click(function(){

       counter = 3//specific number you need;
       showDiv()
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜