Interface Book Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

shaking links when hover=mhae™

Go down

star :) shaking links when hover=mhae™

Post by mhae™ Sat Aug 15, 2009 5:33 am

mhae™️ wrote:1. copy da codes
2. go to geocities and sign in/sign up
3.click "create and update" then "test editor"
4.paste the codes in the textbox
5.then rename it as shake.js
6.lastly,copy the direct link on ur profile..
7..generate here

Code:
/*************/
                                      /* Shaking Links */
                                    /*************/

function shake(){br=document.getElementsByTagName("A");
for(bage=0;bage
br[bage].onmouseover=function(){shakeit(this);qkie();}
br[bage].onmouseout=function(){newPosition(this);top.focus();}}}
attachOnLoadHandler(shake);sa=0;pimp=1;
function shakeit(go){sa=0;my=go;
my.style.left=0;my.style.top=0;}function qkie(){if(sa==1){return;}
if(pimp==1){my.style.top=parseInt(my.style.top)+3;pimp++;}
else if(pimp==2){my.style.left=parseInt(my.style.left)+3;pimp++;}
else if(pimp==3){my.style.top=parseInt(my.style.top)-3;pimp++;}
else{my.style.left=parseInt(my.style.left)-3;pimp=1;}
setTimeout(qkie,50)}function newPosition(go){
sa=1;go.style.left=0;go.style.top=0;}[/color]


preview

credit to:
teppeimhae

fs cueh====>teppeimhae@yahoo.com
mhae™
mhae™
IFB noob :)

Posts : 36 Join date : 2009-07-06

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum