[quote]w0ng_nde50[/quote]
liat z halaman depan dari trhead ini?
di situ ada link koq??
[quote=oblack]
http://h1.ripway.com/tweaking/familylayout/testoblack.js
maklum newbie apa" slalu gk ngarti dah
dari pagi tuh gw utak atik kek gitu tp tetep aja gk bisa bro
makanya gw minta editin biar gw tau n pelajari apa aja siy yg di ubah, edit atau di modif[/quote]
gw punya js yang g di pake lagi??
lo mau coba gak........
ne
[spoiler]/*=========================== BAGIAN A ============================*/
/*---------------------- ONE COLOM -------------------------*/
document.getElementById("shimrow").setAttribute("style","display:none");
getElementByClassName("rtd")[0].setAttribute("style","display:none");
getElementByClassName("ltd")[0].getElementsByTagName("ul")[0].innerHTML+=getElementByClassName("rtd")[0].getElementsByTagName("ul")[0].innerHTML;
get_nextsibling(getElementByClassName("ltd")[0]).setAttribute("style","display:none");
function get_nextsibling(n)
{
x=n.nextSibling;
while (x.nodeType!=1)
{
x=x.nextSibling;
}
return x;
}
function getElementByClassName(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;
}
/*---------------------- LOADING -------------------------*/
loader=new loader();
function loader() {
this.hide=function() {
lding.style.display='none';
}
var lding = document.getElementById('navBg');
myWidth = screen.availWidth;
myHeight = screen.availHeight;
lding.style.zIndex=1000;
lding.style.backgroundImage ="url(http://ghost13.fileave.com/all_image/12345.gif)";
lding.style.backgroundRepeat='repeat';
lding.style.position = 'fixed';
lding.style.top = '0px';
lding.style.left = '0px';
lding.style.width = myWidth;
lding.style.height = myHeight;
lding.style.overflow = 'hidden';
lding.style.display='';
lding.innerHTML="<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><center><font face='Papyrus' color='darkgreen' size='6'>"+pageViewerFName+" Ma KaCiH Ya Dah DatANg! <br><br><br><br>LaGi Loading.. NeH TuNggU BeNtAr Ya..</font><b><br><br><br><br><br><img src='http://i299.photobucket.com/albums/mm310/akatsuki-chick/thitachiq_4.gif'/></center>";
}
if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var ld=setTimeout("loader.hide()",4000);
}
/*---------------- CSS INJECTION ---------------------*/
var css;
try {
css = document.createElement("link");
}catch(e) {
css = document.createElement("<link>");
}
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://ghost13.fileave.com/arya/kiki_punya/thank_ya.css ");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
/*---------------------- TITLE BAR -----------------------*/
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://ghost13.fileave.com/dreamer_18/title_bar.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
/*---------------------- FLOATING ------------------------*/
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://ghost13.fileave.com/dreamer_18/floating_mp3.js ";
document.getElementsByTagName("head")[0].appendChild(myjs);
/*---------------------- TOOLTIPS ------------------------*/
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://ghost13.fileave.com/arya/kiki_punya/tooltips.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
/*-------------------- GANTI USER CP ---------------------*/
document.getElementById("content_0").getElementsByTagName("ul")[1].innerHTML=
"<font color=999999><li>>>>[*]I'M_ALONE[*]<<<<</span><br></li>"+
"<li><span>[*]<blink>I'm : ARIE (MALE,21,SINGLE)</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>Location : MEDAN KOTA PANAS</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>Hobby : SPORTS N MUSICS</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>Fans of : DRAGON FORCE</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>My Soul : _ FAMILY</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>My Heart : _ =====</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>My Best Friends : "+pageViewerFName+"</blink>[*]</span><br></li>"+
"<li><span>[*]<blink>Email : asgoka_4590@yahoo.com </blink>[*]</span><br></li>";
/*------------------- TOOLTIPS CURSORS -------------------*/
document.write("<body title=\"header=[++> Hi "+pageViewerFName+" <++] body=[seLamAt DataNg Di ProFile AriE<img src='http://i270.photobucket.com/albums/jj119/Baphomet1708/itachiavatar.gif'>]\">");
/*========================== BAGIAN B ============================*/
/* -------------------- ONLOAD HANDLER ---------------------*/
function onProfileLoad() {
}
/*------------NAVIGATION---------------*/
var code= "<div align='center'><a href='http://www.friendster.com'><br><img src='http://img139.imageshack.us/img139/9879/96024386gs9.gif'></a></br><br><input type='button' value='Message' onClick=\"top.location.href='http://www.friendster.com/messages.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[MESSAGE]\"><input type='button' value='Settings' onClick=\"top.location.href='http://www.friendster.com/editaccount.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[SETTINGS]\"><input type='button' value='Help' onClick=\"top.location.href='http://www.friendster.com/custhelp.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[HELP]\"><input type='button' value='Log Out' onClick=\"top.location.href='http://www.friendster.com/logout.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[LOG OUT]\"></br><input type='button' value='Home' onClick=\"top.location.href='http://www.friendster.com'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[HOME]\"><input type='button' value='My Profile' onClick=\"top.location.href='http://profiles.friendster.com/user.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[MY PROFILE]\"><input type='button' value='My Connections' onClick=\"top.location.href='http://www.friendster.com/friends.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[MY CONNECTIONS]\"><input type='button' value='Explore' onClick=\"top.location.href='http://friendster.com/explore.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[EXPLORE]\"><input type='button' value='Search' onClick=\"top.location.href='http://www.friendster.com/gallery.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[SEARCH]\"><input type='button' value='Jobs' onClick=\"top.location.href='http://olx.friendster.com/gateway_cobranded.php?country=PH&target=jobs'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[JOBS]\"><input type='button' value='Invite' onClick=\"top.location.href='http://www.friendster.com/invite.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[NAVIGATION] body=[INVITE]\"></br></br></div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_mynav'); return false\"><div>NaViGaTioN "+pageOwnerFName+"</div></a>",code,"mynav","0");
show_hide('content_mynav');
/*---------------- VISITOR --------------*/
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_tracker'); return false\"><div>fans-fans "+pageOwnerFName+"</div></a>",TRACKER.div.innerHTML,"tracker","10");
show_hide('content_tracker');
// FRIENDS
h=document.getElementById("2").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s FriEndS</div></a>";
show_hide('content_2');
// FANS
h=document.getElementById("7").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_7'); return false\"><div>"+pageOwnerFName+"\'s FaN'S</div></a>";
show_hide('content_7');
// GROUPS
h=document.getElementById("8").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div>"+pageOwnerFName+"\'s GroUpS</div></a>";
show_hide('content_8');
/*--------------- TRACKER OBJECT --------------*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px',
height: '520px',
border: '0px',
overflow: 'hidden'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://ghost13.fileave.com/dreamer_18/tracker.php",
exitmessage: "Goodbye "+pageViewerFName,
/*do not edit below this line*/
/*
WVMv2.1
by marfillaster, copyright 2007 friendster.com/mumbhaki
credits: feruzz, renalvir(pimped), nopathz, friendstertalk.com, friendster.com
licensed under GNU General Public License, version 2
http://www.gnu.org/licenses/gpl.html
Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program
*/
base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp",
details: {
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
photo: /imgblock200"[\S\s]+?img src="([\S\s]+?)"/i,
gender: />([\S]*male)/i,
age: /male, ([\d]*),/i,
status: /male, [\d]*,([\S\s]*?)<\/span><\/li>/i,
location: /Location\: <\/span><a[\S\s]+?>([\S\s]+?)<\/a><\/li>/i,
seek: /In\: <\/span>([\S\s]+?)<\/li>/i,
since: /Since\: <\/span>([\S\s]+?)<\/li>/i
},
init: function() {
getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" src=\"about:blank\" style=\"display:none\"></iframe>";
var d= new Date();
var sec=invert(d.getTimezoneOffset()*60);
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="oss="+sec+"&osh="+hr;
var ifsrc=this.phplink+"?"+this.timedetails;
var atr="";
var sty="";
for (val in this.attributes) {
atr += val +"="+ this.attributes[val]+" ";
}
for (val in this.style) {
sty += val +":"+ this.style[val]+";";
}
try {this.div=document.createElement("<div>")}
catch(e){this.div=document.createElement("div")}
this.div.innerHTML="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe></center>";
if(pageViewerID!=pageOwnerID) if(pageViewerID!="")this.getDETAILS();
},
getDETAILS: function() {
processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "parseDETAILS",null);
},
sendExit: function() {
document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1";
alert(this.exitmessage);
}
};
function parseDETAILS(htm) {
if(!htm) {
TRACKER.getDETAILS();
return;
}else {
for (val in TRACKER.details) {
try {
TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]);
}
catch(e) {
TRACKER.details[val]="";
}
}
TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo.replace(/m.jpg/gi,"t.jpg")+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since;
document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param;
}
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
TRACKER.init();
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
/*----------------- END TRACKER OBJECT ---------------*/
/*=========================== BAGIAN C ===========================*/
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
/*------------------ MISC FUNCTIONS ---------------------*/
function urlencode(txt) {
return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E");
}
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
httprequest.open( type, url, cont);
if(type=="POST") {
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", param.length);
httprequest.setRequestHeader("Connection", "close");
}
httprequest.send(param);
}
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
/*------------------- END MISC FUNCTIONS ----------------*/
/*----------------------- VIDEO ----------------------*/
var video ="<div align='center'><embed src='http://www.youtube.com/v/mtzSSZ9vfuo&hl=en&fs=1' type='application/x-shockwave-flash' allowfullscreen='true' width='415' height='344'></embed></div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_box_ke5'); return false\"><div>"+pageOwnerFName+" VidEo</div></a>",video,"box_ke5",null);
show_hide('content_box_ke5');
/*---------------------- CREDITS ---------------------*/
var credits="<center></br>http://www.fileave.com</br>"+
"http://www.slide.com</br>"+
"http://www.yahoo.com</br>"+
"http://www.google.com</br>"+
"http://www.ripway.com</br>"+
"http://www.friendster.com</br>"+
"http://www.musikfs.com</br>"+
"http://www.photobucket.com</br>"+
"http://www.flashfetish.com</br>"+
"http://theftalk.com</br>"+
"http://www.blibs.com</br></br></center>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_box_ke6'); return false\"><div>"+pageOwnerFName+" CrEdiT's</div></a>",credits,"box_ke6",null);
show_hide('content_box_ke6');
/*---------------------- THANK'S TO ---------------------*/
var thank="<center></br>TuhaN yAnG MaHa EsA</br>"+
"Bang KanaL</br>"+
"sasuyasori</br>"+
"Bang Nopathz</br>"+
"sahabat_peterpan</br>"+
"parlay</br>"+
"Freeya</br>"+
"Kherminator</br>"+
"Ferruz</br>"+
"And AnaK-anak FTI</br></br></center>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_box_ke7'); return false\"><div>"+pageOwnerFName+" ThAnK's</div></a>",thank,"box_ke7",null);
show_hide('content_box_ke7');
// CONTROLPANEL
h=document.getElementById("controlpanel_header");
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div>"+pageOwnerFName+"</div></a>";
show_hide('content_0');
// PHOTOS
h=document.getElementById("1").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div>"+pageOwnerFName+"\'s Photo Gallery</div></a>";
show_hide('content_1');
// MOREABOUT
h=document.getElementById("6").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+pageOwnerFName+"</div></a>";
show_hide('content_6');
// PUBLICCOMMENTS
h=document.getElementById("18").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div>TesTimoniaLs "+pageOwnerFName+"</div></a>";
show_hide('content_18');
function show_hide(the_box) {
if (document.getElementById(the_box)) {
if (document.getElementById(the_box).style.display == 'none') {
document.getElementById(the_box).style.display = 'block';
}
else {
document.getElementById(the_box).style.display = 'none';
}
}
}
/*----------------- VIEWER PIC ------------------*/
if (!attachOnLoadHandler(function() { SPAWNPIC.init(); })) window.onload = function() { SPAWNPIC.init(); };
if (typeof SPAWNPIC == "undefined" || !SPAWNPIC) { SPAWNPIC = window.SPAWNPIC || {}; }
(function() {
SPAWNPIC = {
// private property
photo: null,
info: {
name: null,
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
name: /controlpanel_header">([\S\s]*?)<a\s*name="controlpanel/i,
photo: /imgblock200"><a[\S\s]*?>([\S\s]*?)<\/a><\/div>/i,
gender: /q">([\S]*male)/i,
age: /male,\s*([\d]*),/i,
status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i,
location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i,
since: /Member\s*Since\:\s*<\/span>([\S\s]*?)<\/li>/i
},
init: function() {
try {
SPAWNPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, SPAWNPIC.viewer, null);
} catch(e) {}
},
viewer: function(mypic) {
if (mypic.replace(/^\s*|\s*$/g, "") === null) {
alert("VMP Error: Unable to parse user details!");
return;
} else if (mypic) {
for (var val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/^(\d)$/, "0$1");
} catch(e) {
SPAWNPIC.info[val] = "";
}
}
var status = SPAWNPIC.info.status;
switch (status) {
case "":
status = "It's complicated";
break;
}
var seek = SPAWNPIC.info.seek;
switch (seek) {
case "":
seek = "Just looking around";
break;
}
SPAWNPIC.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">" +
"<tr><td class=\"itd\"><a href=\"/" + pageViewerID + "\" title=\"" + pageViewerFName + "\">" +
SPAWNPIC.info.photo + "</a></td>" +
"<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">" +
"<li><a href=\"/" + pageViewerID + "\">" +
SPAWNPIC.info.name + "</a><br>" +
pageViewerID.replace(/^\s*[\d]*?/gi, "No. ID FS Kamu: ") + "<br>" +
SPAWNPIC.info.gender + ", " + SPAWNPIC.info.age + ", " + status + "<br>" +
"Interest In :" + seek + "<br>" +
SPAWNPIC.info.since.replace(/^\s*[\w]*?/gi, "Join di FS sejak :") + "<br>" +
SPAWNPIC.info.location.replace(/^\s*[\S\s]*?/gi, "Negara Favorit :") + "</li>" +
"</div></ul></td></tr></table></div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><blink>Hello "+pageViewerFName+"</blink></a>", SPAWNPIC.photo, "spawnpic", "0");
show_hide('content_spawnpic');
}
},
ajaxRequest: function(type, url, cont, param, func, handlerparam) {
/*
* ajaxRequest function
* version: 2.1
* Copyright: FeRuZZ ©
http://profiles.friendster.com/feruzz
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: param | null
*/
var httprequest = null;
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
for (var x = 0, len = msxml.length; x < len; x++) {
try {
httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]);
break;
} catch(e) {
httprequest = null;
}
}
if (typeof func === "function") {
httprequest.onreadystatechange = function() {
if (httprequest.readyState === 4) {
if (httprequest.status === 200) {
func(httprequest.responseText, handlerparam);
}
}
};
}
httprequest.open(type, url, cont);
httprequest.setRequestHeader("ajaxRequest", "true");
httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if (type === "POST") {
var contentLength = param ? param.length: 0;
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", contentLength);
if (httprequest.overrideMimeType) {
httprequest.setRequestHeader("Connection", "close");
}
}
httprequest.send(param);
}
};
})();
/*-------------------ANIMATED PHOTO PRIMARY -----------------------*/
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] = "http://photos-882.friendster.com/e1/photos/28/84/41534882/1_125984538l.jpg";
this.randimage[1] = "http://photos-882.friendster.com/e1/photos/28/84/41534882/1_850309871l.jpg";
this.randimage[2] = "http://i269.photobucket.com/albums/jj76/old84/1_452115120l-2-1.jpg";
this.randimage[3] = "http://i269.photobucket.com/albums/jj76/old84/fttttttttt-1-1.jpg";
this.randimage[4] = "http://i13.photobucket.com/albums/a264/Kyle-Miller-/fan20art20itachi.jpg";
this.randimage[5] = "http://img245.imageshack.us/img245/5712/itachi8cb1xvwe5.png";
this.randimage[6] =
"http://photos-p.friendster.com/photos/69/63/39863696/202100884l.jpg";
this.randimage[7] =
"http://img389.imageshack.us/img389/2582/10203238yc1.jpg";
this.randimage[8] =
"http://sabaknogaara.ifrance.com/images/fan%20art%20itachi.jpg";
this.image = document.createElement("DIV");
this.image.setAttribute("class","randImg");
this.image.innerHTML = "<img name=\"defaultimage\" width=\"150\" height=\"175\" 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;
}
};
//primary
divpicutama=getElementByClassName("imgblock200")[0];
apicutama=divpicutama.getElementsByTagName("a")[0];
srcpicutama=divpicutama.getElementsByTagName("img")[0].getAttribute("src");
apicutama.innerHTML="<img src='"+srcpicutama+"' class=\"shakeimage\" onMouseover=\"init(this);rattleimage()\" onMouseout=\"stoprattle(this);top.focus()\" onClick=\"top.focus()\">";
function getElementByClassName(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]
edit yang perlu di edit.......
udach rapi tuch.............
kompilt lagi...........
Last edited by ardy_gaul (2008-10-13 13:23:48)