Shake my screen please (help)?

THIS IS THE CODE I HAVE:

<HTML>
<HEAD>

<SCRIPT LANGUAGE=“JavaScript1.2”>
<!-- Begin
function shake(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);
}
}
}
}
// End -->
</script>
</HEAD>
<body>
<center>
<form>
<input type=button onClick=“shake(2)” value=“Shake Screen”>
</form>
</center>
</body>
</html>

END CODE

I want to know how to make the screen shake without having to press a button, or even better make it to that i could click a button in flash and have it do this.

Thanks

maybe like this?

a button’s actionscript:
[AS]
on (release) {
getURL(“j a v a s c r i p t:shake(2);”);
}
[/AS]

please observer that the j a v a s c r i p t should be without every spacing between the letters (javascript)

oooooo that script is sooooooo annoying

B1tch slaps script

anyone else? ANYTHING…

What about Kalliban’s code?

yup, it works just as I thought.
here’s an example

Thank you i see now…