Shake effect in Javascript
by Ranganathan[ Edit ] 2012-10-26 14:46:45
<html>
<head>
<script language="javaScript">
function shakescreen(n)
{
if (parent.moveBy)
{
for (i = 10; i > 0; i--)
{
for (j = n; j > 0; j--)
{
parent.moveBy(0, i);
parent.moveBy(i, 0);
parent.moveBy(0, -i);
parent.moveBy(-i, 0);
}
}
}
}
</script>
</head>
<body>
<form>
<input type="button" onClick="shakescreen(10)" value="Shake Browser Window">
</form>
</body>
</html>
Geethalakshmi
Not working
0
0
Add Reply