Cápás Flashbutton
Script 1:
<STYLE><BR>.shakeimage{<BR>position:relative<BR>}<BR></STYLE> <BR> <SCRIPT language=JavaScript1.2></P> <P>/*<BR>Shake image script (onMouseover)- <BR>© Dynamic Drive (<A href="http://www.dynamicdrive.com">www.dynamicdrive.com</A>)<BR>For full source code, usage terms, and 100's more DHTML scripts, visit <A href="http://dynamicdrive.com">http://dynamicdrive.com</A><BR>*/</P> <P>//configure shake degree (where larger # equals greater shake)<BR>var rector=3</P> <P>///////DONE EDITTING///////////<BR>var stopit=0 <BR>var a=1</P> <P>function init(which){<BR>stopit=0<BR>shake=which<BR>shake.style.left=0<BR>shake.style.top=0<BR>}</P> <P>function rattleimage(){<BR>if ((!document.all&&!document.getElementById)||stopit==1)<BR>return<BR>if (a==1){<BR>shake.style.top=parseInt(shake.style.top)+rector<BR>}<BR>else if (a==2){<BR>shake.style.left=parseInt(shake.style.left)+rector<BR>}<BR>else if (a==3){<BR>shake.style.top=parseInt(shake.style.top)-rector<BR>}<BR>else{<BR>shake.style.left=parseInt(shake.style.left)-rector<BR>}<BR>if (a<4)<BR>a++<BR>else<BR>a=1<BR>setTimeout("rattleimage()",50)<BR>}</P> <P>function stoprattle(which){<BR>stopit=1<BR>which.style.left=0<BR>which.style.top=0<BR>}</P> <P></SCRIPT> </P>