Shake effect in Javascript

by Ranganathan 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>



349
like
0
dislike
0
mail
flag

You must LOGIN to add comments
Geethalakshmi

Not working