Pages: 12

  2008-08-09 23:27:12

Deviantangel
» FTalkGeek
FTalk Level: zero
1002
0
1969-12-31

Re: [align=center]This is a cool trick!! If u point on the image it will shake!! Make sure the page is fully loaded to see it shakes. Put the following code into the HEAD part of your page: [code]<style

I know you didn't make this trick. =| Please do not rip codes. Properly credit them. What if someone rips your work and claim it for yourself? :| Look at the codes: [quote][align=center]<style> .shakeimage{ position:relative } </style> <script language="JavaScript1.2"> /* Shake image script (onMouseover)- [b]© Dynamic Drive (www.dynamicdrive.com)[/b] For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com */ //configure shake degree (where larger # equals greater shake) var rector=3 ///////DONE EDITTING/////////// var stopit=0 var a=1 function init(which){ stopit=0 shake=which shake.style.left=0 shake.style.top=0 } function rattleimage(){ if ((!document.all&&!document.getElementById)||stopit==1) return if (a==1){ shake.style.top=parseInt(shake.style.top)+rector } else if (a==2){ shake.style.left=parseInt(shake.style.left)+rector } else if (a==3){ shake.style.top=parseInt(shake.style.top)-rector } else{ shake.style.left=parseInt(shake.style.left)-rector } if (a<4) a++ else a=1 setTimeout("rattleimage()",50) } function stoprattle(which){ stopit=1 which.style.left=0 which.style.top=0 } </script>[/align][/quote] Tsk. This is your second time to rip. =| Please do not do that or else you will be labeled as a ripper.

Last edited by Deviantangel1995 (2008-08-09 23:29:08)

Pages: 12

Board footer

© 2025 F Talk

Current time is 09:31

[ 12 queries - 0.008 second ]
Privacy Policy