Pages: 12

  2008-08-09 13:39:44

Refresh/Reload
» FTalkAddict
FTalk Level: zero
332
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 guess some members are getting confused because some are not familiar yet with this file/codes types... so i'll try to explain it in the best i can... If you happen to see these [b]tags[/b] below enclosing some codes... <style> or <style type="text/css"> ..... ..... </style> and <script language="JavaScript1.2"> or <script type="text/javascript"> ..... ..... </script> the [b]style[/b] is for CSS and the [b]script[/b] is for JS... those are usually use on .htm or .html or index files... like for example an ENTER/INTRO/WELCOME page or overlays or you can add it on your [b]php[/b] files... I Think lordheinz has this posted before for WVM tracker php file... so if you want to use it in your EXTENSION/EXTERNAL files... it would be like this... [b]without the tags[/b]... on your [b]CSS[/b] extension file... add this... without the [b]style[/b] tags... [quote].shakeimage { position:relative }[/quote] and then in your [b]JS[/b] extension file... add this... without the [b]script[/b] tags... [quote]/* Shake image script (onMouseover)- © Dynamic Drive (www.dynamicdrive.com) 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 }[/quote] you can put it below your js codes compilation in your js extension file... and if you have a customized image on your customized boxes or addbox or on some tricks with images... add the mouseover/out codes... <">btw... not all those type of codes that you see on tutorial sites like Dynamic Drive are just copy paste codes... sometimes you really have to re-edit it big time!! heheh.. I hope i've explained it right nyahahahh!! =D hope this helps... :D @ EleeGirl Thanx for posting it also... coz i forgot about this trick... I'm using it now... :thumbsup:

Last edited by Refresh/Reload (2008-08-09 15:02:51)

Pages: 12

Board footer

© 2024 F Talk

Current time is 01:42

[ 12 queries - 0.011 second ]
Privacy Policy