Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Geri Sayım</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <script type="text/javascript">
- var intObjs=0;
- function frmt(intNbr) {
- return (intNbr<10 ? '0' : '') + Math.floor(intNbr) +':';
- }
- function fillnum(i, j) {
- if (i.indexOf('.') == -1) i = i + '.';
- while (i.length < j)
- i = i + '0';
- return i;
- }
- var sss = -10;
- var timelimit;
- var timevalue;
- function preconfirm(objLink, strHREF){
- if(confirm("delete?")) {
- objLink.href = strHREF;
- }
- }
- function countdown(intSec,strTgt,strCmd) {
- if (sss == -10)
- sss = intSec.toString().length + 1;
- if(document.getElementById) {
- try {
- var args = countdown.arguments;
- var disp1 = intSec;
- var disp = disp1;
- if(args.length > 2)
- {
- if(disp > 60000)
- {
- timelimit = fillnum((disp/6000).toString(), sss);
- timevalue = 'dakika';
- }
- else
- {
- timelimit = fillnum((disp/100).toString(), sss);
- timevalue = 'saniye';
- }
- document.getElementById('count_'+strTgt).firstChild.data = timelimit +' '+ timevalue;
- }
- else {
- strCmd = (args.length>1) ? args[1] : '';
- strTgt = intObjs;
- var Teil = disp;
- document.write('<span id="count_'+ intObjs++ +'">'+ Teil +'<\/span>');
- }
- if (intSec > 0)
- window.setTimeout('countdown('+(intSec-9)+','+strTgt+',\''+strCmd+'\')',90);
- else
- eval(strCmd);
- }
- catch(e){}
- }
- }
- function setTimer( remain, actions, cut ) {
- if(!remain)
- document.getElementById('download').style.display = 'inline';
- (function countdown() {
- display('countdown', toMinuteAndSecond(remain), cut);
- actions[remain] && actions[remain]();
- (remain -= 1) >= 0 && setTimeout(arguments.callee, 1000);
- })();
- }
- </script>
- </head>
- <body>
- Lütfen bekleyin <script type="text/javascript">countdown(4000,'change()');</script>.
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement