Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- var c=0;
- var t;
- var timer_is_on=0;
- function timedStop()
- {
- document.getElementById('bar').width=c;
- document.getElementById('bar').height=c;
- c=c-16;
- t=setTimeout("timedStop()",1);
- }
- function timedCount()
- {
- document.getElementById('bar').width=c;
- document.getElementById('bar').height=c;
- c=c+16;
- t=setTimeout("timedCount()",1);
- while (c > 300){
- c=300;
- setTimeout("timedStop()",5);
- return c;
- }
- }
- function doTimer()
- {
- if (!timer_is_on)
- {
- timer_is_on=1;
- timedCount();
- }
- }
- </script>
- </head>
- <body onload="doTimer();">
- <img id="bar" src="pisacz.jpg" style="float:center;margin-top:10%;margin-left:20%;>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement