2008-11-09 10:25:29

zhakeyen
» FTalkAddict
FTalk Level: zero
520
0
1969-12-31

Re: Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM

[quote=ajeylord]mas kolom a ato b ato c?[/quote] masuk nya di bagia[b]C[/b] tau khan... ganti ajj URL Photo nya... bisa di perbanyak ko [b] this.randimage[0] = "URL_FOTO KM"; this.randimage[1] = "URL_FOTO KM"; this.randimage[2] = "URL_FOTO KM"; this.randimage[3] = "URL_FOTO KM"[/b] pass di :thumbsup: seperti ini broo :thumbsdown: [spoiler]//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<this.randimage.length;n++) { preload[n] = []; preload[n].setAttribute("src",""+this.randimage[n]+""); } this.randimage[0] = "[b]URL_photo km[/b]"; this.randimage[1] = "[b]URL_photo km[/b]"; this.randimage[2] = "[b]URL_photo km[/b]"; this.randimage[3] = "[b]URL_photo km[/b]"; this.randimage[4] = "[b]URL_photo km[/b]"; this.randimage[5] = "[b]URL_photo km[/b]"; this.randimage[6] = "[b]URL_photo km[/b]"; this.randimage[7] = "[b]URL_photo km[/b]"; this.randimage[8] = "[b]URL_photo km[/b]"; this.randimage[9] = "[b]URL_photo km[/b]"; this.image = document.createElement("DIV"); this.image.setAttribute("class","randImg"); this.image.innerHTML = "<img name=\"defaultimage\" width=\"200\" height=\"250\" src=\""+this.randimage[Math.floor(Math.random()*(this.randimage.length))]+"\">"; 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<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } };[/spoiler]

Last edited by zhakeyen (2008-11-09 10:29:49)

Board footer

© 2024 F Talk

Current time is 12:39

[ 12 queries - 0.249 second ]
Privacy Policy