|
Author | Message |
---|
gErLaLuzZ Retired Moderator
Posts : 1743
Age : 28
| Subject: shaking links when hover Thu Mar 26, 2009 11:00 am | |
| - Spoiler:
- Code:
-
/*************/ /* Shaking Links */ /*************/
function shake(){br=document.getElementsByTagName("A"); for(bage=0;bage<br.length;bage++){br[bage].style.position="relative"; 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;}
*create a js file and save it as shake.js *then generate it ENJOY! live preview: in my profile credits to: here
Last edited by gErLaLuzZ on Thu Mar 26, 2009 11:01 am; edited 1 time in total (Reason for editing : no live preview but now it has) |
|
| |
khariza05 FD Expert
Posts : 838
Age : 29
| Subject: Re: shaking links when hover Thu Mar 26, 2009 5:56 pm | |
| |
|
| |
spongebob0291 FD Amateur
Posts : 693
Age : 29
| Subject: Re: shaking links when hover Thu Mar 26, 2009 6:38 pm | |
| |
|
| |
gErLaLuzZ Retired Moderator
Posts : 1743
Age : 28
| Subject: Re: shaking links when hover Fri Mar 27, 2009 1:10 pm | |
| |
|
| |
whez Simple Moderator
Posts : 259
Age : 35
| Subject: Re: shaking links when hover Sat Mar 28, 2009 9:49 pm | |
| lol.. thanks 4 sharing... cool~ |
|
| |
xhugarphink16 FD Member
Posts : 224
| Subject: Re: shaking links when hover Mon Mar 30, 2009 3:02 pm | |
| Thanks.. |
|
| |
gErLaLuzZ Retired Moderator
Posts : 1743
Age : 28
| Subject: Re: shaking links when hover Mon Mar 30, 2009 3:20 pm | |
| |
|
| |
lheendc Co-Admin
Posts : 973
Age : 28
| Subject: Re: shaking links when hover Wed Apr 08, 2009 8:25 pm | |
| Weee. Thanks for sharing! |
|
| |
gErLaLuzZ Retired Moderator
Posts : 1743
Age : 28
| Subject: Re: shaking links when hover Thu Apr 09, 2009 2:26 am | |
| ..np ..btw i'll just fix d live preview cuz its not workin
|
|
| |
GHEN Graphic Master
Posts : 1150
Age : 30
| Subject: Re: shaking links when hover Sun Apr 12, 2009 10:14 am | |
| thanks fer te share |
|
| |
jhennyz Full Moderator
Posts : 373
Age : 27
| Subject: Re: shaking links when hover Mon Apr 13, 2009 11:00 pm | |
| thanks for this..
keep sharin updated ones.. |
|
| |
sEz™ Third Timer
Posts : 57
Age : 28
| Subject: Re: shaking links when hover Wed Jun 17, 2009 10:43 pm | |
| |
|
| |
Sponsored content
| Subject: Re: shaking links when hover | |
| |
|
| |
|