Shake your browser:
1. Insert an on press/on release event.
2. insert the following javascript:
| CODE | 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);
}
}
}
}
shake(5); |
3. change the duration by changing the 5 ( shake(5); ) at the bottom, to any number of your choice.
4. Change the "shakiness" by changing the 10 ( i = 10; ) 3 lines down, to any number of your choice.
Thats it.......Simple!
-rob;)
|
|
|