HomeHome  portal1portal1  GalleryGallery  SearchSearch  Link Rotation  Donate  RegisterRegister  Log inLog in  


Global Announcement

FriendsterAddictz Forum is on-search for Moderators. For more information, click THIS.
Please promote FriendsterAddictz Forum.


Animated Primary Photo

View previous topicView next topicGo down
Author Message
kmaey
Activated
avatar

Male
Age : 27 Registration date : 2008-10-25 Number of posts : 20 Location : INDONESIA



PostSubject: Animated Primary Photo Sat Oct 25, 2008 11:57 pm

her is ti tih code:
Quote :
//Animated Primary Photo

if (!attachOnLoadHandler(function() { randImage();})) window.onload = function() { randImage();};
function randImage() {
RANDOMIMG.init();
}

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

init: function() {
var preload = [];
for (var n=0;n preload[n] = [];
preload[n].setAttribute("src",""+this.randimage[n]+"");
}
this.randimage[0] = "URL PHOTO1";
this.randimage[1] = "URL PHOTO2";
this.randimage[2] = "URL PHOTO2";
this.randimage[3] = "URL PHOTO4";
this.randimage[4] = "URL PHOTO5";
this.randimage[5] = "URL PHOTO6";

this.image = document.createElement("DIV");
this.image.setAttribute("class","randImg");
this.image.innerHTML = "";
this.sibling = this.getModuleByClassName(/imgblock200/i)[0];
this.sibling.parentNode.replaceChild(this.image,this.sibling);
setInterval("RANDOMIMG.rotateimage()", 2*1000);
},

rotateimage: function() {
var ind = 0;
if (ind == (temp = Math.floor(Math.random()*(this.randimage.length)))) {
ind = (ind == 0) ? 1 : ind - 1;
}else {
ind = temp;
}
document.images.defaultimage.setAttribute("src",""+this.randimage[ind]+"");
},

getModuleByClassName: function(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
};
note:
Code:
change url phot 1 - your url photo

paste this code in section C in ur JS file
Back to topGo down
View user profile
- JoyChristian -
Moderator
avatar

Male
Age : 25 Registration date : 2008-07-14 Number of posts : 611 Location :



PostSubject: Re: Animated Primary Photo Sun Oct 26, 2008 7:13 am

thank y0u f0r sharing it here :)
_________________
Back to topGo down
View user profile
kmaey
Activated
avatar

Male
Age : 27 Registration date : 2008-10-25 Number of posts : 20 Location : INDONESIA



PostSubject: Re: Animated Primary Photo Sun Oct 26, 2008 4:16 pm

thnx to
this codei made in FTI
Back to topGo down
View user profile
arneldayao
FA Newbie
FA Newbie
avatar


Age : 26 Registration date : 2008-08-26 Number of posts : 1 Location :



PostSubject: Re: Animated Primary Photo Thu Dec 11, 2008 12:57 pm

hello san ko yan i-paste?
Back to topGo down
View user profile
ridz
FA Newbie
FA Newbie
avatar

Male
Age : 32 Registration date : 2008-12-27 Number of posts : 3 Location :



PostSubject: Re: Animated Primary Photo Sat Dec 27, 2008 11:27 pm

thankz your share .................... lol!


promo fs ach.............................



add me fs ok http://h1.badwaresite.www/ridz/kucrut1.html
Back to topGo down
View user profile
LoVesKi
Activated
avatar

Female
Age : 45 Registration date : 2008-05-02 Number of posts : 9 Location : California



PostSubject: Re: Animated Primary Photo Thu Mar 05, 2009 11:53 am

Thanks for Sharing :)
Back to topGo down
View user profile
Sponsored content








PostSubject: Re: Animated Primary Photo

Back to topGo down

Animated Primary Photo

View previous topicView next topicBack to top
Page 1 of 1

Permissions in this forum: You cannot reply to topics in this forum
FriendsterAddictz :: FRIENDSTER SECTION :: Friendster Codes and Tutorials -