1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | <script> <!-- var limit= "1:30" if (document.images){ var parselimit=limit.split( ":" ) parselimit=parselimit[ 0 ]* 60 +parselimit[ 1 ]* 1 } function begintimer(){ if (!document.images) return if (parselimit== 1 ) window.location= "http://www.vnn.vn/" else { parselimit-= 1 curmin=Math.floor(parselimit/ 60 ) cursec=parselimit% 60 if (curmin!= 0 ) curtime=curmin+ " minutes and " +cursec+ " seconds left" else curtime=cursec+ " seconds left" window.status=curtime setTimeout( "begintimer()" , 1000 ) } } //--> </script> |
1 | <body onLoad= "begintimer()" > |
Ý kiến bạn đọc [ 0 ]
Ý kiến của bạn