FSTUTS FORUMERS
Dont forget to join!

Please Read the forum rules and regulations before posting^_^

Thank You!

Random Primary Picture

Go down

Random Primary Picture

Post by Psycho Dancer on Fri May 29, 2009 1:04 pm

Code:
if (typeof RANDOMIMG == "undefined" || !RANDOMIMG) { RANDOMIMG = {}; }
RANDOMIMG = {
image: null,
sibling: null,
randimage: [],

init: function() {
var preload = [];
for (var n=0;n<this.randimage.length;n++) {
preload[n] = [];
preload[n].src = RANDOMIMG.randimage[n];
}
RANDOMIMG.randimage.push("youre pic");
RANDOMIMG.randimage.push("youre pic");
RANDOMIMG.randimage.push("youre pic");
RANDOMIMG.randimage.push("youre pic");
RANDOMIMG.randimage.push("youre pic");
RANDOMIMG.randimage.push("youre pic");


RANDOMIMG.image = document.createElement("div");
RANDOMIMG.image.className = "randomImage";
var rotateimg = document.createElement("img");
rotateimg.id = "defaultimage";
rotateimg.style.width = "200px";
rotateimg.style.height = "200px";
rotateimg.src = RANDOMIMG.randimage[Math.floor(Math.random()*(RANDOMIMG.randimage.length))];
RANDOMIMG.image.appendChild(rotateimg);
RANDOMIMG.sibling = document.getElementById("content_0").getElementsByTagName("a")[0];
RANDOMIMG.sibling.parentNode.replaceChild(RANDOMIMG.image,RANDOMIMG.sibling);
setInterval("RANDOMIMG.rotateimage()", 2*1000);
},

rotateimage: function() {
var ind = 0;
if (ind == (temp = Math.floor(Math.random()*(RANDOMIMG.randimage.length)))) {
ind = (ind == 0) ? 1 : ind - 1;
}else {
ind = temp;
}
document.getElementById("defaultimage").src = RANDOMIMG.randimage[ind];
}
};RANDOMIMG.init();

Edit your pic and paste it the url you want to be the outline Very Happy and paste it on your External js

_________________
Just Give me Repu or Thanks by Clicking the + in my field if i help You ^^



I love my Haterz coZ thEy make me famous


avatar
Psycho Dancer
MOD
MOD

Posts : 166
Reputation : 45
Join date : 2009-05-27
Age : 28
Location : Binangonan Rizal

http://www.friendster.com/psychodancer

Back to top Go down

Re: Random Primary Picture

Post by [DYOSZA]JiNRiKiSHA on Fri May 29, 2009 2:28 pm


thnks again for the codes kua paul Razz

if u mind please give a detailed instructions
for the newbies Very Happy
also the CREDITs Razz

_________________
avatar
[DYOSZA]JiNRiKiSHA
Graphic Artist
Graphic Artist

Posts : 207
Reputation : 15
Join date : 2009-05-26
Age : 26
Location : Mars

http://www.friendster.com/miinidii

Back to top Go down

Re: Random Primary Picture

Post by [DYOSZA]SHEYN on Fri May 29, 2009 10:49 pm

aba aba.. dae na nashare ah.. hehe.. nice!

_________________


| FS CO |
| PLURK! |



isnt it CUTE?! Very Happy

avatar
[DYOSZA]SHEYN
MOD
MOD

Posts : 128
Reputation : 15
Join date : 2009-05-26
Age : 24
Location : bulacan

Back to top Go down

Re: Random Primary Picture

Post by [DYOSZA]cesza on Mon Jun 01, 2009 12:20 pm

hmmn any preview?

anyway, nice trick.
.

_________________

--> http://www.friendster.com/violetcesza <--

[center]HOW BOUT' SOME REPU FELLAZ? ENX Smile

you will always be my FRIEND no matter what:)[/center]
avatar
[DYOSZA]cesza
ADMIN
ADMIN

Posts : 58
Reputation : 24
Join date : 2009-05-26
Age : 26
Location : taguig

Back to top Go down

Re: Random Primary Picture

Post by [DYOSZA]candy on Mon Jun 01, 2009 12:49 pm

one repu 4 u ^_^

[DYOSZA]candy
MOD
MOD

Posts : 102
Reputation : 43
Join date : 2009-05-27
Age : 24

Back to top Go down

Re: Random Primary Picture

Post by [DYOSZA]gane on Sun Jun 07, 2009 7:39 pm

tenx pOr sheriN Very Happy
+ repu 4 YoO
avatar
[DYOSZA]gane
MOD
MOD

Posts : 221
Reputation : 122
Join date : 2009-05-26
Age : 21
Location : Baguio City, Philippines

Back to top Go down

Re: Random Primary Picture

Post by [ MALIBOG ] Jendrick on Mon Jun 08, 2009 1:42 am

thanks for sharing Very Happy

_________________
sino kaya nag alis ng siggy ko?
avatar
[ MALIBOG ] Jendrick
ADMIN
ADMIN

Posts : 96
Reputation : 16
Join date : 2009-05-26

Back to top Go down

Re: Random Primary Picture

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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