Line 62: | Line 62: | ||
var n = 2; | var n = 2; | ||
var t = 30; | var t = 30; | ||
+ | setInterval(function () {t = t+1}, 1000); | ||
setInterval(function () { | setInterval(function () { | ||
if (t>29) { | if (t>29) { | ||
Line 91: | Line 92: | ||
t = 0; | t = 0; | ||
n = n+1; | n = n+1; | ||
− | |||
if (n==2) { | if (n==2) { | ||
$("#two").css('left', '110%') | $("#two").css('left', '110%') | ||
Line 118: | Line 118: | ||
t = 0; | t = 0; | ||
n = n-1; | n = n-1; | ||
− | |||
if (n == 1) { | if (n == 1) { | ||
$("#four").css('left', '-110%'); | $("#four").css('left', '-110%'); |
Revision as of 16:42, 16 August 2016
>
<