EGER BU BUTONU WEB SAYFANA KOYMAK ISTERSEN ASAGIDAKI CODELARI WEB SAYFANIN BODY TAGINA EKLEMEN YETERLIDIR
<!-- TWO STEPS TO INSTALL SHAKE SCREEN: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin netscape = (navigator.appName == "Netscape"); n4 = netscape && (parseInt(navigator.appVersion) >= 4); explorer = (navigator.appName == "Microsoft Internet Explorer"); ie4 = explorer && (parseInt(navigator.appVersion) >= 4); function shake(n) { if (n4 || ie4) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { self.moveBy(0,i); self.moveBy(i,0); self.moveBy(0,-i); self.moveBy(-i,0); } } } } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <form> <input type=button onClick="shake(2)" value="Shake Screen"> </form> </center> <!-- Script Size: 1.09 KB -->