Thursday, 5 September 2013

Switch divs every 10secs using jquery?

Switch divs every 10secs using jquery?

I have two div's setup that when clicked on a link switch from blue to
orange. The sit in the same place and just give the impression of swapping
from one colour to the other. This is my jquery:
jQuery(document).ready(function( $ ) {
$(".dab").click(function(){
$("#pf-orange-area").show();
$("#pf-blue-area").hide();
});
$(".pfs").click(function(){
$("#pf-orange-area").hide();
$("#pf-blue-area").show();
});
});
How I keep that functionality but also make them switch every 10 secs
automatically?

No comments:

Post a Comment