kmaey
Activated
Age : 33
Registration date : 2008-10-25
Number of posts : 20
Location : INDONESIA
|
Subject: 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 |
|
- JoyChristian -
Moderator
Age : 30
Registration date : 2008-07-14
Number of posts : 611
Location :
|
Subject: Re: Animated Primary Photo Sun Oct 26, 2008 7:13 am |
|
|
thank y0u f0r sharing it here :) |
|
kmaey
Activated
Age : 33
Registration date : 2008-10-25
Number of posts : 20
Location : INDONESIA
|
Subject: Re: Animated Primary Photo Sun Oct 26, 2008 4:16 pm |
|
|
thnx to this codei made in FTI |
|
arneldayao
FA Newbie
Age : 32
Registration date : 2008-08-26
Number of posts : 1
Location :
|
Subject: Re: Animated Primary Photo Thu Dec 11, 2008 12:57 pm |
|
|
hello san ko yan i-paste? |
|
ridz
FA Newbie
Age : 38
Registration date : 2008-12-27
Number of posts : 3
Location :
|
Subject: Re: Animated Primary Photo Sat Dec 27, 2008 11:27 pm |
|
|
thankz your share ....................
promo fs ach.............................
add me fs ok http://h1.badwaresite.www/ridz/kucrut1.html |
|
LoVesKi
Activated
Age : 51
Registration date : 2008-05-02
Number of posts : 9
Location : California
|
Subject: Re: Animated Primary Photo Thu Mar 05, 2009 11:53 am |
|
|
Thanks for Sharing :) |
|
Sponsored content
|
Subject: Re: Animated Primary Photo |
|
|
|
|