Facebook Teens
You'll need to login or register in order to fully use all the features and view all the sections of this site.
Thank you.


Join the forum, it's quick and easy

Facebook Teens
You'll need to login or register in order to fully use all the features and view all the sections of this site.
Thank you.
Facebook Teens
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Facebook Teens
Similar topics

You are not connected. Please login or register

  

View previous topic View next topic Go down  Message [Page 1 of 1]

1SHAKING PRIMARY IMAGE Empty SHAKING PRIMARY IMAGE Sat Dec 06, 2008 10:41 am

danilodeleon

danilodeleon
Administrative Team
Administrative Team
Description:Your Primary Image will shake on mouse over and will stop on mouse out.
LIVE PREVIEW:

http://profiles.friendster.com/91075052

CODE:
if (!attachOnLoadHandler(function() { SHAKEIMG.init();})) window.onload = function() { SHAKEIMG.init();};

if (typeof SHAKEIMG == "undefined") { SHAKEIMG = {}; }
SHAKEIMG = {
stopIt: 0,
stopAt: 1,
deg: 3,

classShake: function() {
try {
sty = document.createElement("style");
sty.type = "text/css";
sty.innerHTML = ".shakeIt{position:relative;}";
document.getElementsByTagName("head")[0].appendChild(sty);
}catch(e){}
try {
document.styleSheets[document.styleSheets.length - 1].addRule(".shakeIt", "position:relative;");
}catch(e){}
},

init: function() {
imgSrc = this.getModuleByClassName(/imgblock200/i)[0].getElementsByTagName("img")[0].getAttribute("src");
getSrc = this.getModuleByClassName(/imgblock200/i)[0].getElementsByTagName("a")[0];
getSrc.innerHTML = "<img src=\""+imgSrc+"\" class=\"shakeIt\" onMouseover=\"SHAKEIMG.initshake(this);SHAKEIMG.rattleimage()\" onMouseout=\"SHAKEIMG.stoprattle(this);top.focus()\" onClick=\"top.focus()\">";
SHAKEIMG.classShake();
},

initshake: function(x) {
this.stopIt = 0;
goyang = x;
goyang.style.left = 0;
goyang.style.top = 0;
},

rattleimage: function() {
if ((!document.all && !document.getElementById) || this.stopIt == 1) {
return;
}
if (this.stopAt == 1) {
goyang.style.top = parseInt(goyang.style.top)+this.deg;
}else if (this.stopAt == 2) {
goyang.style.left = parseInt(goyang.style.left)+this.deg;
}else if (this.stopAt == 3) {
goyang.style.top = parseInt(goyang.style.top)-this.deg;
}else {
goyang.style.left = parseInt(goyang.style.left)-this.deg;
}
if (this.stopAt < 4) {
this.stopAt++;
}else {
this.stopAt = 1;
}
setTimeout("SHAKEIMG.rattleimage()",50);
},

stoprattle: function(x) {
this.stopIt = 1;
x.style.left = 0;
x.style.top = 0;
},

getModuleByClassName: function(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
};




SORRY ADMINS,BUT I HATE USING SPOILER SHAKING PRIMARY IMAGE Icon_biggrin

JUST PLACE THE CODE IN YOUR JS FILE.

http://profiles.friendster.com/danilodeleon

2SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Sat Dec 06, 2008 10:31 pm

pauster01

pauster01
Retired Administrator
Retired Administrator
don't wori its ok Wink
hahaha Wink

http://friendster.com/pauster01

3SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Mon Dec 08, 2008 11:33 am

guitar

guitar
Retired Administrator
Retired Administrator
yeah its ok danz


just post the way you want

nice trick


SHAKING PRIMARY IMAGE 582213

http://profiles.friendster.com/guitariztarey

4SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Thu Dec 18, 2008 1:37 pm

babyberbz

babyberbz
Retired Administrator
Retired Administrator
nawiwiwi ako sa mga shake

SHAKING PRIMARY IMAGE E8790

http://www.friendster.cpm/babyberbz

5SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Fri Dec 19, 2008 9:36 am

danilodeleon

danilodeleon
Administrative Team
Administrative Team
babyberbz wrote:nawiwiwi ako sa mga shake

SHAKING PRIMARY IMAGE E8790

waaaaaaa haha,,yung sa profile ko iba gamit ko SHAKING PRIMARY IMAGE 703307.. yung draggable primary image na pwede mo ilgy kaht saan.. haha

http://profiles.friendster.com/danilodeleon

6SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Fri Dec 19, 2008 2:07 pm

babyberbz

babyberbz
Retired Administrator
Retired Administrator
wow..
ganda nmn nyan..
galing mu danz...
i crush u na..
SHAKING PRIMARY IMAGE E8790

http://www.friendster.cpm/babyberbz

7SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Mon Mar 02, 2009 8:38 pm

cesza01

cesza01
Guest
Guest
whoops.. wahahahahahah bawal agawin saken aswa qu.. wahahahaha


galing galing nea uhh.. kea nea qu nkuha kac ang galing nea ee.

wahahahah


nc trick dadie.. kip on posting

il post mine SHAKING PRIMARY IMAGE 992424 haha lol

http://friendstertutorials.com

8SHAKING PRIMARY IMAGE Empty Re: SHAKING PRIMARY IMAGE Wed Mar 11, 2009 4:09 pm

guitar

guitar
Retired Administrator
Retired Administrator
waa agawin daw oh hahaha


cesza paluin kita jan

http://profiles.friendster.com/guitariztarey

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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

 

ChatBox
Create a forum on Forumotion | ©phpBB | Free forum support | Report an abuse | Forumotion.com