UzmanMotorcU Geyik Takımı
Mesaj Sayısı : 45 Teşekkür Edilen Sayısı.. : 115 Rep Gücü : 2 Kayıt tarihi : 15/03/10 Yaş : 32
| Konu: Sayfayı titretmek Ptsi Mart 15, 2010 11:49 am | |
| - Kod:
-
<html>
<head>
<title></title>
</head>
<body> <script language="javascript" type="text/javascript">
var speed =100; //You can change this value var spread = 20; //You can change this value function Vibrate() { spread = - spread; window.moveBy(spread, spread); if (spread == 0) { window.clearInterval(Go); spread = 20; //If you change "spread", don't forget to change here also! } else if (spread >0) spread--; else if (spread <0) spread++; } function DoIt() { Go = window.setInterval(Vibrate, speed); }
</script> <form> <input type="button" value="Click Me!" onclick="DoIt();"> </form> </body>
</html> | |
|