FTalk

FTalk

Welcome guest! Please Login or Register.

#1  2009-02-03 14:41:31

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ Me!Some FTalkers ♥ My Threads!
dcrazier dbetter bxtreme
Class X
HubbieHubbieLand
3255
333

Image Shake Improved

-change A to img if u only want the image to move
- makes ur primary pic .. photo gallery... comment pic and friendlist shake

Code:

/**********************************/
/* Submitted: by: Angell de Ville */
/**********************************/

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;}

other version using math

Code:

/**************************************************/
/* Image shake - Friendster Tweaks                */
/* by: Archer  - www.friendsterforum.com          */
/* adjust the value of speed and radius           */
/**************************************************/

pics = document.getElementsByTagName('img')
FF = "Netscape"
IE = "Microsoft Interner Explorer"
radius=8
speed=5
a = 0

function tagAllPics(){
for(x=0; x<pics.length;x++){
if(navigator.appName==FF){
pics[x].setAttribute("onmouseover","tagX("+x+")")
pics[x].setAttribute("onmouseout","tagY("+x+")")
}

else{
psrc = pics[x].getAttribute("src")
pid = pics[x].getAttribute("id")
pcls = pics[x].getAttribute("class")
pics[x].outerHTML=
"<img id="+pid+" class="+pcls+" src="+psrc+
" onmouseover=tagX("+x+") onmouseout=tagY("+x+")>"}
}
}


function tagX(x){
pics[x].style.position="relative"
moveIt = setInterval("orbit("+x+")",5)
}

function tagY(x){
pics[x].style.top = "0"
pics[x].style.left= "0"
window.clearInterval(moveIt)
}

function orbit(x){
pics[x].style.top= radius*Math.cos(a/speed)
pics[x].style.left=radius*Math.sin(a/speed)
a++;}
setTimeout("tagAllPics()", 1000)

Last edited by switpotato (2009-02-03 14:52:42)


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

                    

bLeSs-x0x0-[?] likes this topic.

#2  2009-02-03 14:58:12

mG
 «QuEzO dE BoLa™»
mG's display avatar
» FTalkElite
FTalk Level: HARDCORE!
Rockstars
eLPi ciTy
6344
145
Website

Re: Image Shake Improved

WaAaAww..
you are a great contributor.... =):thumbsup:


An UnExAminEd LiFe iS n0t WoRtH LiVinG.

"RocKsTaRs"
The very best

"Welcome im
back, :D"

#3  2009-02-03 23:07:25

bobcbar
 Bob
bobcbar's display avatar
» Former Moderator
FTalk Level: HARDCORE!
Novice ModeratorTop PosterSome FTalkers ♥ Me!
Dongduchon, Korea
11549
374
Website

Re: Image Shake Improved

Thanks for sharing more cool codes swit =)  Is there a different in the way the two codes make the images shake?


#4  2009-02-03 23:43:10

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFTalker
FTalk Level: 5
Everyone ♥♥♥ Me!Topic InitiatorTop PosterSome FTalkers ♥ My Threads!
Anadipsic en Sarcophilous
KARAKURA TOWN
11014
1302
Website

Re: Image Shake Improved

thanks for this... sis

#5  2009-02-04 02:10:50

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ Me!Some FTalkers ♥ My Threads!
dcrazier dbetter bxtreme
Class X
HubbieHubbieLand
3255
333

Re: Image Shake Improved

bobcbar wrote:

Thanks for sharing more cool codes swit =)  Is there a different in the way the two codes make the images shake?

the one made by angell makes ur image shake and links as well..
by changing the A(links)  to  img..

the one made by archer u can control the speed and radius ... for shake efex...
angell work is controlable thou but i find lil confusing where to control it....

but both are nice original codes... and new

Last edited by switpotato (2009-02-04 02:12:49)


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

#6  2009-02-04 13:02:28

ajhe
ajhe's display avatar
» n00b
FTalk Level: zero
62
4
2009-12-09

Re: Image Shake Improved

nice short code^^:D
you can also change A / IMG to embed / object :D


#7  2009-02-04 13:07:53

Freeya
 David MichaeL
Freeya's display avatar
» FTalkElite
FTalk Level: 5
Some FTalkers ♥ Me!
Rockstars
5393
230

Re: Image Shake Improved

this simple =)
so :rolleyes:

thank's for sher sis ;):thumbsup:

#8  2009-02-04 14:51:38

radit_92
» n00b
FTalk Level: zero
1
0
2009-05-06

Re: Image Shake Improved

fren bantu donk ksh tw crax untuk mengerakan fto.......... cz aq msih pemula...........:thumbsup:

#9  2009-02-04 17:17:38

whez
whez's display avatar
» Promoter
FTalk Level: zero
Novice Promoter
Rockstars
Malaysian®
692
38

Re: Image Shake Improved

oww...
nice 1...
thanks 4 sharing..~


#10  2009-02-04 22:44:14

suddendeath
 Adeq
suddendeath's display avatar
» Banned
FTalk Level: zero
Just Do It
Malaysia
1875
55

Re: Image Shake Improved

I find this trick for along time ago. This day,i get this trick. Smart. Btw,its working in IE browser for both script?



Study had for SPM

#11  2009-02-05 00:09:41

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ Me!Some FTalkers ♥ My Threads!
dcrazier dbetter bxtreme
Class X
HubbieHubbieLand
3255
333

Re: Image Shake Improved

suddendeath wrote:

I find this trick for along time ago. This day,i get this trick. Smart. Btw,its working in IE browser for both script?

are you sure... show me the codes...
if theres a codes like this long time ago u should know by now if it works in both browser...
anyways heres the sample...
http://www.friendster.com/96617496

Last edited by switpotato (2009-02-05 00:44:20)


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

#12  2009-02-05 00:19:44

suddendeath
 Adeq
suddendeath's display avatar
» Banned
FTalk Level: zero
Just Do It
Malaysia
1875
55

Re: Image Shake Improved

switpotato wrote:

are you sure... show me the codes...

Have mistaken here. I mean,im waiting for this code for along time. Today,u post this script. Sorry if i mistake. My bad english too.



Study had for SPM

#13  2009-02-05 00:45:13

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ Me!Some FTalkers ♥ My Threads!
dcrazier dbetter bxtreme
Class X
HubbieHubbieLand
3255
333

Re: Image Shake Improved

@ sudden no big deal bro..
:kiss:


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

#14  2009-02-05 00:52:18

suddendeath
 Adeq
suddendeath's display avatar
» Banned
FTalk Level: zero
Just Do It
Malaysia
1875
55

Re: Image Shake Improved

^ Tq. Im using it now. Hopefully u always keep sharing.=)



Study had for SPM

#15  2009-02-05 04:28:19

charlaine07
» n00b
FTalk Level: zero
5
0
2009-03-31

Re: Image Shake Improved

wer should i paste the code after??

#16  2009-02-05 05:59:43

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ Me!Some FTalkers ♥ My Threads!
dcrazier dbetter bxtreme
Class X
HubbieHubbieLand
3255
333

Re: Image Shake Improved

charlaine07 wrote:

wer should i paste the code after??

first this is a JS
second the codes follow no rules..
its not dependend  in onload handler..
thus u can paste it in any arrangment as u wish..


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

#17  2009-02-05 17:03:32

unmaskedluke
 NeLNeL
unmaskedluke's display avatar
» FTalkFreak
FTalk Level: zero
Some FTalkers ♥ Me!
>iM cOnFuse!<
Malaysia
1790
282
Website

Re: Image Shake Improved

weww so kewlll~ its shakinn' :D thx for sharing sis. ahax~ :rose: :kiss:



A career is born in public -- talent in privacy.

#18  2009-02-05 18:44:17

zoytie
» n00b
FTalk Level: zero
1
0
2009-02-05

Re: Image Shake Improved

where should i put it??

in css box or media box???

pls help...

tnx....

#19  2009-02-06 01:39:31

SoIwasAlone
 John Ipswitch
SoIwasAlone's display avatar
» n00b
FTalk Level: zero
sigh....
Philipines
55
3
2010-01-04
Website

Re: Image Shake Improved

thnx for the info. but wer should we put it?



just asking!:)


Here I walk alone  in the rain... screaming your name... wishing  I never knew you!
                                              -SoIwasAlone-

#20  2009-02-06 04:58:15

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FTalkWhiz
FTalk Level: zero
Some FTalkers ♥ Me!Some FTalkers ♥ My Threads!
dcrazier dbetter bxtreme
Class X
HubbieHubbieLand
3255
333

Re: Image Shake Improved

zoytie wrote:

where should i put it??

in css box or media box???

pls help...

tnx....

SoIwasAlone wrote:

thnx for the info. but wer should we put it?



just asking!:)

pls read the convo here....

switpotato wrote:

first this is a JS
second the codes follow no rules..
its not dependend  in onload handler..
thus u can paste it in any arrangment as u wish..


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

Search Friendstertalk

Board footer

The F Talk dot com
© 2002–2010 PunBB

Current time is 00:01:03 GMT

[ 10 queries - 0.037 second ]
Powered by SyntheticNetwork

FTalk

Welcome to FTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)

( hide )