phasmatis_nox
[H]ard|Gawd
- Joined
- Jun 24, 2003
- Messages
- 1,519
I saw this flash anim in which.... well... watch.
Now that you know what I'm talking about... I want to know how to do that. I found this code:
That's apparently written to react to timings in the flash, as it does nothing on my site. Does anybody know how I can trigger this differently, such as on a link click or something? (Not all the time, that'd be annoying) I haven't learned much Javascript at all(yet!), so unfortunately I need to be spoonfed answers.
Thanks!
Now that you know what I'm talking about... I want to know how to do that. I found this code:
Code:
function shake() {
if (parent.moveBy) {
for (i = 15; i > 0; i--) {
for (j = 2; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
}
}
}
}
That's apparently written to react to timings in the flash, as it does nothing on my site. Does anybody know how I can trigger this differently, such as on a link click or something? (Not all the time, that'd be annoying) I haven't learned much Javascript at all(yet!), so unfortunately I need to be spoonfed answers.
Thanks!