Unskilled Forum
Welcome to Unskilled! Smile
Please Login/Register To have a full access in our site!

~ Unskilled Team/Staff!

Join the forum, it's quick and easy

Unskilled Forum
Welcome to Unskilled! Smile
Please Login/Register To have a full access in our site!

~ Unskilled Team/Staff!
Unskilled Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Right Click Shake

3 posters

Go down  Message [Page 1 of 1]

1Right Click Shake Empty Right Click Shake 11/1/2009, 05:35

crazyadmer

crazyadmer
Administrator
Administrator

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: Admer */
/**********************************/

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:

Code:
/**************************************************/
/* Image shake - Friendster Tweaks                */
/* by: Archer  - [You must be registered and logged in to see this link.]         */
/* 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 admer on 11/8/2009, 06:49; edited 1 time in total

https://facebook.com/admerbakud

2Right Click Shake Empty Re: Right Click Shake 11/8/2009, 06:47

PAULiNE

PAULiNE
Level 1
Level 1

thanks

3Right Click Shake Empty Re: Right Click Shake 11/8/2009, 06:48

crazyadmer

crazyadmer
Administrator
Administrator

PAULiNE wrote:thanks



np Smile

https://facebook.com/admerbakud

4Right Click Shake Empty Re: Right Click Shake 11/8/2009, 06:50

PAULiNE

PAULiNE
Level 1
Level 1

gagana po ba toh kahit wlang working app ?

5Right Click Shake Empty Re: Right Click Shake 11/9/2009, 08:47

crazyadmer

crazyadmer
Administrator
Administrator

PAULiNE wrote:gagana po ba toh kahit wlang working app ?

nope. all JS scripts here are all offline because there's no app.

https://facebook.com/admerbakud

6Right Click Shake Empty Re: Right Click Shake 11/14/2009, 12:20

KHERVZ

KHERVZ
Level 1
Level 1

panu ba ean?
=))

7Right Click Shake Empty Re: Right Click Shake 11/14/2009, 12:46

crazyadmer

crazyadmer
Administrator
Administrator

KHERVZ wrote:panu ba ean?
=))

you need to apply application first but the application now a days is not working.

https://facebook.com/admerbakud

Sponsored content



Back to top  Message [Page 1 of 1]

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