Replace:
Code:
setTimeout(function(){
$header_display.val('WASHINGTON').change();
$demos.val(9).change();
var toggle = true;
setInterval(function(){
if (toggle) {
$header_display.val('LOS ANGELES').change();
$demos.val(9).change();
} else {
$header_display.val('').change();
$demos.val('').change();
}
toggle = !toggle;
}, 5000);
}, 1000);
with:
Code:
var places = ['WASHINGTON', 'LOS ANGELES', 'ARIZONA', 'FLORIDA', 'TEXAS'];
setTimeout(function(){
$header_display.val(places[0]).change();
$demos.val(9).change();
var c = 0;
setInterval(function(){
$header_display.val(places[(++c) % places.length]).change();
$demos.val(9).change();
}, 5000);
}, 1000);
BTW, there's a lot of code and css not being used on that page.
Bookmarks