PDA

View Full Version : Resolved How to add more words on split-flap ?



volkantr19
11-11-2013, 03:23 AM
Hello everybody;

I try to add more cities on split-flap but i couldn't do it.

There are only two cities on board but i want to add more cities (for example ARIZONA,FLORIDA,TEXAS etc.)

How to add this ?

Thank you for your help in advance.


My example website is http://.com.tr/

volkantr19
11-14-2013, 06:04 AM
Can anyone give me an opinion please?

jscheuer1
11-19-2013, 02:21 PM
Replace:


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:


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.

volkantr19
11-19-2013, 03:24 PM
Mr. John;

Thank you very very much for your help...
You're always the best...