FSTUTS FORUMERS
Dont forget to join!

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

Thank You!

Join the forum, it's quick and easy

FSTUTS FORUMERS
Dont forget to join!

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

Thank You!
FSTUTS FORUMERS
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Random Primary Picture

+3
[DYOSZA]SHEYN
[DYOSZA]JiNRiKiSHA
Psycho Dancer
7 posters

Go down

Random Primary Picture Empty Random Primary Picture

Post by Psycho Dancer 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
Psycho Dancer
Psycho Dancer
MOD
MOD

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

http://www.friendster.com/psychodancer

Back to top Go down

Random Primary Picture Empty Re: Random Primary Picture

Post by [DYOSZA]JiNRiKiSHA 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
[DYOSZA]JiNRiKiSHA
[DYOSZA]JiNRiKiSHA
Graphic Artist
Graphic Artist

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

http://www.friendster.com/miinidii

Back to top Go down

Random Primary Picture Empty Re: Random Primary Picture

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

aba aba.. dae na nashare ah.. hehe.. nice!
[DYOSZA]SHEYN
[DYOSZA]SHEYN
MOD
MOD

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

Back to top Go down

Random Primary Picture Empty Re: Random Primary Picture

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

hmmn any preview?

anyway, nice trick.
.
[DYOSZA]cesza
[DYOSZA]cesza
ADMIN
ADMIN

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

Back to top Go down

Random Primary Picture Empty Re: Random Primary Picture

Post by [DYOSZA]candy 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 : 30

Back to top Go down

Random Primary Picture Empty Re: Random Primary Picture

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

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

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

Back to top Go down

Random Primary Picture Empty Re: Random Primary Picture

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

thanks for sharing Very Happy
[ MALIBOG ] Jendrick
[ MALIBOG ] Jendrick
ADMIN
ADMIN

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

Back to top Go down

Random Primary Picture Empty 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