kk tolong Ajarin Aku donks Gimana caranya Ganti Code Yg dibawah ini
Supaya jadi ke Ripway & jadi ke Js/Css Supaya bisa masuk ke Fs aq!!!!
Dibawah ini Cuma contoh Code
Contoh Code :
//JS INJECTION
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://h1.ripway.com/teno/teno%20depok/tracker.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
//no right click cbox
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://h1.ripway.com/teno/teno%20depok/RIGHT%20CLICK%20CBOX.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
// CSS INJECTION
function injectcss() {
if(window.cssinjected == undefined) {
cssinjected = 1;
var css = document.createElement("link");
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/teno/teno%20depok/teno%20depok.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
// ADD BOX
if(!attachOnLoadHandler(function()
{
mp3();
}
)
)
parent.onload = function()
{
mp3();
}
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);
}
}
function mp3() {
var mp3 ="<div align='center'><embed allowScriptAccess=\"never\" src=\"http://www.mp3asset.com/swf/mp3/mp3player.swf\" menu=\"false\" quality=\"high\" width=\"265px\" height=\"270px\" name=\"index\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"myid=7067691&path=2007/12/29&mycolor=0x000000&mycolor2=0x000000&mycolor3=0xFFFF00&autoplay=true&rand=0&f
&vol=100\" wmode=\"transparent\"/></embed><br /><a href=\"http://www.myspaceprodesigns.com\"></a></div></div>";
addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_music'); return false\"><div>"+pageOwnerFName+"\'s Flash MP3_klik kl mo lihat",mp3,"music","2");
show_hide('content_music');
}
//NAVIGATION
var navi="<div align='left'><font color= #000000></font></div> <marquee style='width:0%px;border:0px solid #000000; direction='left' scrollamount='1' onmouseover='this.stop()' onmouseout='this.start()'>||<a href='http://friendster.com'><font face='century gothic'><b>Home</b></font></a>||<a href='http://profiles.friendster.com/user.php'><font face='century gothic'><b>My Profile</b></font></a>||<a href='http://friendster.com/friends.php'><font face='century gothic'><b>Friends</b></font></a>||<a href='http://friendster.com/editaccount.php'><font face='century gothic'><b>Settings</b></font></a>||<a href='http://friendster.com/logout.php'><font face='century gothic'><b>Log Out</b></font></a>||</marquee><br></div>";
addBox("LEFT","Navigation",navi,"navi","0");
//KOTAK CBOX
var cbox="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='150' src='http://www5.cbox.ws/box/?boxid=68404&boxtag=ae5yc6&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='tenodepok' style='border: #373635 5px groove; color: #666462; -moz-border-radius: 15px; font: Georgia 12px bold;' id='tenodepok'></iframe><br/><form name='chat' target='tenodepok' action='http://www5.cbox.ws/box/?boxid=68404&boxtag=ae5yc6&sec=submit' method='post'><input type='hidden' name='nme' value='"+pageViewerFName+"'><input type='hidden' name='eml' value='http://www.friendster.com/"+pageViewerID+"'><textarea style='background: #000000; border: #373635 5px groove;-moz-border-radius: 10px; color: #666462; font: Andy 12px bold;' class='cboxMsgArea' cols='22' rows='3' name='pst'></textarea><br /><input type='submit' class='cboxButtons' value='submit' name='tenodepok'><input class='cboxButtons' type='reset' value='clear' maxlength='23' onClick='reset()'><input type='button' class='cboxButtons' value='refresh' name='tenodepok' onClick='window.tenodepok.location.href=document.getElementById(\"tenodepok\").src'></form>"+
"</div>";
addBox("LEFT",pageOwnerFName+"'MESSAGE BOX[kirim pesan kamu di sini ya]",cbox,"cboxbox","6");
/* CEK FS */
var varcekfs="<div align='center'><form>"+
"Friendster ID : <input type='text' id='txtcekfs' value='' maxlength='8' size='8' /> "+
" <input type='button' id='btncekfs' onclick='cekfs()' value='Proses Cek' />"+
"</form><br /><div id='outputcekfs'></div></div>";
addBox("RIGHT","= CEK FS =",varcekfs,"divcekfs",null);
// FRIENDS
h=document.getElementById("2").getElementsByTagName("h2")[0];
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div title=\"header=[ini teman Qu] body=[semua yang ada di sini teman2 Qu]\">teman "+pageOwnerFName+"\_klik tuk melihat</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 title=\"header=[FANS BERATHzz] body=[ini boX fans berath nya aQ]\">FAN "+pageOwnerFName+"\_klik tuk melihat</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 title=\"header=[INI GROUPS TENO] body=[jangan lupa untuk gabung ya]\">GrOup "+pageOwnerFName+"\_klik tuk melihat</div></a>";
show_hide('content_8');
//coment versi 2
var spasi5="&nb"+"sp;"+"&nb"+"sp;"+"&nb"+"sp;"+"&nb"+"sp;"+"&nb"+"sp;";
tombol_cmntx=document.getElementById("content_18").getElementsByTagName("div")[0];
tombol_cmntx.style.textAlign="center";
tombol_cmntx.innerHTML=" ";
for (i=0;i<10;i++) {
fotosrc=document.getElementById("18").getElementsByTagName("td")[2*i].getElementsByTagName("div")[0].getElementsByTagName("img")[0].getAttribute("src");
ulcmntx=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0];
licmntx=ulcmntx.getElementsByTagName("li")[0];
linkxcmnt=ulcmntx.getElementsByTagName("li")[0].getElementsByTagName("a")[0];
xcmntName=linkxcmnt.innerHTML.replace(/"/g,"").replace(/'/g,"");
xcmntHref=linkxcmnt.getAttribute("href");
ulcmntx.title="header=[= "+xcmntName+" =] body=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] fixedabsx=[550] offsety=[-30]";
ulcmntx.getElementsByTagName("li")[2].style.background="#FFFFFF url(http://h1.ripway.com/nopathz/theme1/images/kertas.jpg)";
ulcmntx.getElementsByTagName("li")[2].style.color="#000000";
ulcmntx.getElementsByTagName("li")[2].style.padding="17px 10px 10px 80px";
ulcmntx.getElementsByTagName("li")[2].style.lineHeight="18.4px";
tombol_cmntx.innerHTML+=" <img src=\"http://h1.ripway.com/nopathz/tracker/digital-clock/"+i+".gif\" class=\"shakeimage\" onmouseover=\"munculkomen('"+i+"')\" title=\"header=[= "+xcmntName+" =] body=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] fixedabsx=[550] offsety=[30]\"> ";
divcmntx=document.getElementById("content_18").getElementsByTagName("div")[2*i+1];
divcmntx.style.display="none";
fototd=document.getElementById("18").getElementsByTagName("td")[2*i];
lidate=ulcmntx.getElementsByTagName("li")[0];
lidate.innerHTML+=spasi5+"<a target='_blank' href='"+xcmntHref.replace(/profiles.friendster.com\//i,"www.friendster.com/sendmessage.php?uid=")+"&action=sendsmile' style='background:none;padding:0px'><img src=\"http://h1.ripway.com/nopathz/theme1/images/smile_icon.gif\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/nopathz/theme1/images/smile_icon.gif' align='absmiddle'> SEND SMILE] body=[Kirim smile untuk "+xcmntName+"]\"></a>"+spasi5+"<a target='_blank' href='"+xcmntHref.replace(/profiles.friendster.com\//i,"www.friendster.com/sendmessage.php?uid=")+"' style='background:none;padding:0px'><img src=\"http://h1.ripway.com/nopathz/theme1/images/msg_icon.gif\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/nopathz/theme1/images/msg_icon.gif' align='absmiddle'> SEND MESSAGE] body=[Kirim message untuk "+xcmntName+"]\"></a>"+spasi5+"<a target='_blank' href='"+xcmntHref.replace(/profiles.friendster.com\//i,"www.friendster.com/photos/")+"' style='background:none;padding:0px'><img src=\"http://h1.ripway.com/nopathz/theme1/images/img_icon.png\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/nopathz/theme1/images/img_icon.png' align='absmiddle'> PHOTOS] body=[Lihat foto-foto milik "+xcmntName+"]\"></a>"+spasi5+"<a target='_blank' href='"+xcmntHref.replace(/profiles.friendster.com\//i,"www.friendster.com/comments.php?uid=")+"' style='background:none;padding:0px'><img src=\"http://h1.ripway.com/nopathz/theme1/images/com_icon.gif\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/nopathz/theme1/images/com_icon.gif' align='absmiddle'> REPLY COMMENT] body=[Balas komentar untuk "+xcmntName+"]\"></a>";
fototd.style.display="none";
}
//Ganti tulisan Master header
var h;
//control panel
h=document.getElementById("controlpanel_header");
h.innerHTML="<span><font size=2 face=Trebuchet MS>klik untuk melihat<font size=2 face=modern color= WHITE><img src='http://dl.glitter-graphics.net/pub/66/66171vkv7o4rnkq.gif'></font> <font size=1 face=modern color =WHITE></font></font></span>";
//photo gallery
h=document.getElementById("1").getElementsByTagName("h2")[0];
h.innerHTML="<span><font size=2 face=Trebuchet MS>GALERY FOTO GW NIH_klik aja kl mau lihat<font size=2 face=modern color= WHITE><><></font> <font size=1 face=modern color =WHITE></font></font></span>";
//more about me
h=document.getElementById("6").getElementsByTagName("h2")[0];
h.innerHTML="SEmua TEnTAng Teno h5N1 KeyboaRdiS_klik aja k mau lihat";
//comment
h=document.getElementById("18").getElementsByTagName("h2")[0];
h.innerHTML="KIRIM koMEnT Ya JGn LUphA_klik aja kalo mau lihat";
// Viewer di Shout Out
var shoutout = "WElCOmE Di TeNo H5n1 KeyboaRdIs"+pageViewerFName;
document.getElementById('cpShoutoutBox').innerHTML = "<DIV>"+shoutout+"</DIV>";
//mini viewer
if ( ! attachOnLoadHandler(function (){mainVpic();})) window.onload = function (){ mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
function getRegExpDetails(mypic) {
if(!mypic) {
SPAWNPIC.getCode();
return;
}else {
for (val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
}catch(e) {
SPAWNPIC.info[val] = "";
}
}
if(pageViewerID != "") SPAWNPIC.openForm();
}
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
viewerphoto: [],
info: {
name: null, photo: null, status: null, since: null, location: null
},
regexp: {
name: /controlpanel_header">((.|\s)+?)<a\s*name="controlpanel/,
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/,
status: /data">((.|\s)+?)<\/span><\/li>/,
since: /Since\:\s*<\/span>((.|\s)+?)<\/li>/,
location: /Location\:\s*<\/span>((.|\s)+?)<\/li>/
},
content: {
id: "viewerphoto",
sibling: "15"
},
init: function() {
this.ajaxRequest("viewerPic","/user.php?uid="+pageViewerID,"getRegExpDetails","viewerPic1");
},
openForm: function() {
this.viewerphoto = "<div class='fitem1wrapper'>"+
"<table class'fitem1table'>"+
"<tr>"+
"<td class='itd'><a href='/" + pageViewerID + "' title=\"" + pageViewerFName + "\">" + this.info.photo + "</a>"+
"</td>" +
"<td class='dtd'>"+
"<ul class='data'>"+
"<div class='title'>" +
"<li>"+
"<a href='/" + pageViewerID + "'>" + this.info.name + "</a>"+
"<br />Friendster ID: <a href='/" + pageViewerID + "'>" + pageViewerID + "</a>"+
this.info.status + "<br>Member Since: " + this.info.since + "<br />Location: " + this.info.location + "</li>"+
"</div>" +
"</ul>"+
"</td>"+
"</tr>"+
"</table>"+
"</div>";
this.addContent("SELAMAT DATANG DI TENO FANs "+this.info.name,this.viewerphoto,this.content.id,this.content.sibling);
},
ajaxRequest: function(xmlHttp,base_domain,ajaxfunc,handler) {
eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + handler + "=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + handler + ")}}");
eval(xmlHttp + ".open('GET','" + base_domain + "',true);");
eval(xmlHttp + ".send(null);");
},
addContent: function(header,cont,id,sibling) {
var box = document.getElementById(sibling).parentNode;
try {
var obj = document.createElement("LI");
}catch(e) {
var obj = document.createElement("<LI>");
}
obj.innerHTML = "<div class='commonbox "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2><a name='"+id+"'></a><a name='"+id+"'></a>"+
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
box.parentNode.insertBefore(obj,box);
}
};
//coment ver2
function munculkomen(nomorkomen){
for (i=0;i<10;i++) {
imgnya=document.getElementById("content_18").getElementsByTagName("div")[0].getElementsByTagName("img")[i];
stoprattle(imgnya);
divcmntx=document.getElementById("content_18").getElementsByTagName("div")[2*i+1];
divcmntx.style.display="none";
}
document.getElementById("content_18").getElementsByTagName("div")[2*nomorkomen+1].style.display="block";
goyangimg=document.getElementById("content_18").getElementsByTagName("div")[0].getElementsByTagName("img")[nomorkomen];
initshake(goyangimg);
rattleimage();
}
// YAHOO MESENGGER
var penyuberenang;
try {penyuberenang = document.createElement("div");}
catch (e) {penyuberenang = document.createElement("<div>");}
penyuberenang.innerHTML = "<a href='ymsgr:sendim?teno_1984'><img src='http://opi.yahoo.com/online?u=teno_1984&m=g&t=8' border='0'></a>";
penyuberenang.setAttribute("style","text-align:center;padding-top:10px");
document.getElementById("controlPanelButtons").parentNode.appendChild(penyuberenang);
// JAM
var scroller;
var ampm;
var actualtitle=document.title+" "
function antiMilitaryTime()
{
if (hr == "12"){
ampm="P.M."
}
else if (hr == "13"){
hr="1"
ampm="P.M."
}
else if (hr == "14"){
hr="2"
ampm="P.M."
}
else if (hr == "15"){
hr ="3"
ampm="P.M."
}
else if (hr == "16"){
hr = "4"
ampm="P.M."
}
else if (hr == "17"){
hr = "5"
ampm="P.M."
}
else if (hr == "18"){
hr = "6"
ampm="P.M."
}
else if (hr == "19"){
hr = "7"
ampm="P.M."
}
else if (hr == "20"){
hr = "8"
ampm="P.M."
}
else if (hr == "21"){
hr = "9"
ampm="P.M."
}
else if (hr == "22"){
hr = "10"
ampm="P.M."
}
else if (hr == "23"){
hr = "11"
ampm="P.M."
}
else if (hr == "24"){
hr = "12"
}
}
function addZero(){
if (min <= "9"){
min = "0"+min
}
if (sec<= "9"){
sec = "0"+sec
}
if (hr <=9){
hr = "0"+hr
}
}
function time(){
dt=new Date()
sec=dt.getSeconds()
hr=dt.getHours()
ampm="A.M."
min=dt.getMinutes()
}
function scroll() {
time()
antiMilitaryTime()
addZero()
var scroller="TIME: "+hr+":"+min+":"+sec+" "+ampm
var timeout=setTimeout("scroll()", 1000)
document.title=actualtitle+scroller
}
if (document.all||document.getElementById)
scroll()
/****************************************
Shake image script (onMouseover)-
© Dynamic Drive (
www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
*****************************************/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0
var a=1
function initshake(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a=
){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
/**********************************
* TOOLTIPS *
* Sumber :
http://www.swazz.org/ *
***********************************/
if (typeof document.attachEvent!='undefined') {
window.attachEvent('onload',init);
document.attachEvent('onmousemove',moveMouse);
document.attachEvent('onclick',checkMove); }
else {
window.addEventListener('load',init,false);
document.addEventListener('mousemove',moveMouse,false);
document.addEventListener('click',checkMove,false);
}
var oDv=document.createElement("div");
var dvHdr=document.createElement("div");
var dvBdy=document.createElement("div");
var windowlock,boxMove,fixposx,fixposy,lockX,lockY,fixx,fixy,ox,oy,boxLeft,boxRight,boxTop,boxBottom,evt,mouseX,mouseY,boxOpen,totalScrollTop,totalScrollLeft;
boxOpen=false;
ox=10;
oy=10;
lockX=0;
lockY=0;
function init() {
oDv.appendChild(dvHdr);
oDv.appendChild(dvBdy);
oDv.style.position="absolute";
oDv.style.visibility='hidden';
document.body.appendChild(oDv);
}
function defHdrStyle() {
dvHdr.innerHTML='<img style="vertical-align:middle" src="info.gif"> '+dvHdr.innerHTML;
dvHdr.style.fontWeight='bold';
dvHdr.style.width='170px';
dvHdr.style.fontFamily='Tahoma';
dvHdr.style.border='1px solid #A5CFE9';
dvHdr.style.padding='3';
dvHdr.style.fontSize='11';
dvHdr.style.color='#4B7A98';
dvHdr.style.background='#D5EBF9';
dvHdr.style.filter='alpha(opacity=85)'; // IE
dvHdr.style.opacity='0.85'; // FF
}
function defBdyStyle() {
dvBdy.style.borderBottom='1px solid #A5CFE9';
dvBdy.style.borderLeft='1px solid #A5CFE9';
dvBdy.style.borderRight='1px solid #A5CFE9';
dvBdy.style.width='170px';
dvBdy.style.fontFamily='Tahoma';
dvBdy.style.fontSize='11';
dvBdy.style.padding='3';
dvBdy.style.color='#1B4966';
dvBdy.style.background='#FFFFFF';
dvBdy.style.filter='alpha(opacity=85)'; // IE
dvBdy.style.opacity='0.85'; // FF
}
function checkElemBO(txt) {
if (!txt || typeof(txt) != 'string') return false;
if ((txt.indexOf('header')>-1)&&(txt.indexOf('body')>-1)&&(txt.indexOf('[')>-1)&&(txt.indexOf('[')>-1))
return true;
else
return false;
}
function scanBO(curNode) {
if (checkElemBO(curNode.title)) {
curNode.boHDR=getParam('header',curNode.title);
curNode.boBDY=getParam('body',curNode.title);
curNode.boCSSBDY=getParam('cssbody',curNode.title);
curNode.boCSSHDR=getParam('cssheader',curNode.title);
curNode.IEbugfix=(getParam('hideselects',curNode.title)=='on')?true:false;
curNode.fixX=parseInt(getParam('fixedrelx',curNode.title));
curNode.fixY=parseInt(getParam('fixedrely',curNode.title));
curNode.absX=parseInt(getParam('fixedabsx',curNode.title));
curNode.absY=parseInt(getParam('fixedabsy',curNode.title));
curNode.offY=(getParam('offsety',curNode.title)!='')?parseInt(getParam('offsety',curNode.title)):10;
curNode.offX=(getParam('offsetx',curNode.title)!='')?parseInt(getParam('offsetx',curNode.title)):10;
curNode.fade=(getParam('fade',curNode.title)=='on')?true:false;
curNode.fadespeed=(getParam('fadespeed',curNode.title)!='')?getParam('fadespeed',curNode.title):0.04;
curNode.delay=(getParam('delay',curNode.title)!='')?parseInt(getParam('delay',curNode.title)):0;
if (getParam('requireclick',curNode.title)=='on') {
curNode.requireclick=true;
document.all?curNode.attachEvent('onclick',showHideBox):curNode.addEventListener('click',showHideBox,false);
document.all?curNode.attachEvent('onmouseover',hideBox):curNode.addEventListener('mouseover',hideBox,false);
}
else {// Note : if requireclick is on the stop clicks are ignored
if (getParam('doubleclickstop',curNode.title)!='off') {
document.all?curNode.attachEvent('ondblclick',pauseBox):curNode.addEventListener('dblclick',pauseBox,false);
}
if (getParam('singleclickstop',curNode.title)=='on') {
document.all?curNode.attachEvent('onclick',pauseBox):curNode.addEventListener('click',pauseBox,false);
}
}
curNode.windowLock=getParam('windowlock',curNode.title).toLowerCase()=='off'?false:true;
curNode.title='';
curNode.hasbox=1;
}
else
curNode.hasbox=2;
}
function getParam(param,list) {
var reg = new RegExp('([^a-zA-Z]' + param + '|^' + param + ')\\s*=\\s*\\[\\s*(((\\[\\[)|(\\]\\])|([^\\]\\[]))*)\\s*\\]');
var res = reg.exec(list);
var returnvar;
if(res)
return res[2].replace('[[','[').replace(']]',']');
else
return '';
}
function Left(elem){
var x=0;
if (elem.calcLeft)
return elem.calcLeft;
var oElem=elem;
while(elem){
if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderLeftWidth)))&&(x!=0))
x+=parseInt(elem.currentStyle.borderLeftWidth);
x+=elem.offsetLeft;
elem=elem.offsetParent;
}
oElem.calcLeft=x;
return x;
}
function Top(elem){
var x=0;
if (elem.calcTop)
return elem.calcTop;
var oElem=elem;
while(elem){
if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderTopWidth)))&&(x!=0))
x+=parseInt(elem.currentStyle.borderTopWidth);
x+=elem.offsetTop;
elem=elem.offsetParent;
}
oElem.calcTop=x;
return x;
}
var ah,ab;
function applyStyles() {
if(ab)
oDv.removeChild(dvBdy);
if (ah)
oDv.removeChild(dvHdr);
dvHdr=document.createElement("div");
dvBdy=document.createElement("div");
CBE.boCSSBDY?dvBdy.className=CBE.boCSSBDY:defBdyStyle();
CBE.boCSSHDR?dvHdr.className=CBE.boCSSHDR:defHdrStyle();
dvHdr.innerHTML=CBE.boHDR;
dvBdy.innerHTML=CBE.boBDY;
ah=false;
ab=false;
if (CBE.boHDR!='') {
oDv.appendChild(dvHdr);
ah=true;
}
if (CBE.boBDY!=''){
oDv.appendChild(dvBdy);
ab=true;
}
}
var CSE,iterElem,LSE,CBE,LBE, totalScrollLeft, totalScrollTop, width, height ;
var ini=false;
// Customised function for inner window dimension
function SHW() {
if (document.body && (document.body.clientWidth !=0)) {
width=document.body.clientWidth;
height=document.body.clientHeight;
}
if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
width=document.documentElement.clientWidth;
height=document.documentElement.clientHeight;
}
return [width,height];
}
var ID=null;
function moveMouse(e) {
//boxMove=true;
e?evt=e:evt=event;
CSE=evt.target?evt.target:evt.srcElement;
if (!CSE.hasbox) {
// Note we need to scan up DOM here, some elements like TR don't get triggered as srcElement
iElem=CSE;
while ((iElem.parentNode) && (!iElem.hasbox)) {
scanBO(iElem);
iElem=iElem.parentNode;
}
}
if ((CSE!=LSE)&&(!isChild(CSE,dvHdr))&&(!isChild(CSE,dvBdy))){
if (!CSE.boxItem) {
iterElem=CSE;
while ((iterElem.hasbox==2)&&(iterElem.parentNode))
iterElem=iterElem.parentNode;
CSE.boxItem=iterElem;
}
iterElem=CSE.boxItem;
if (CSE.boxItem&&(CSE.boxItem.hasbox==1)) {
LBE=CBE;
CBE=iterElem;
if (CBE!=LBE) {
applyStyles();
if (!CBE.requireclick)
if (CBE.fade) {
if (ID!=null)
clearTimeout(ID);
ID=setTimeout("fadeIn("+CBE.fadespeed+")",CBE.delay);
}
else {
if (ID!=null)
clearTimeout(ID);
COL=1;
ID=setTimeout("oDv.style.visibility='visible';ID=null;",CBE.delay);
}
if (CBE.IEbugfix) {hideSelects();}
fixposx=!isNaN(CBE.fixX)?Left(CBE)+CBE.fixX:CBE.absX;
fixposy=!isNaN(CBE.fixY)?Top(CBE)+CBE.fixY:CBE.absY;
lockX=0;
lockY=0;
boxMove=true;
ox=CBE.offX?CBE.offX:10;
oy=CBE.offY?CBE.offY:10;
}
}
else if (!isChild(CSE,dvHdr) && !isChild(CSE,dvBdy) && (boxMove)) {
// The conditional here fixes flickering between tables cells.
if ((!isChild(CBE,CSE)) || (CSE.tagName!='TABLE')) {
CBE=null;
if (ID!=null)
clearTimeout(ID);
fadeOut();
showSelects();
}
}
LSE=CSE;
}
else if (((isChild(CSE,dvHdr) || isChild(CSE,dvBdy))&&(boxMove))) {
totalScrollLeft=0;
totalScrollTop=0;
iterElem=CSE;
while(iterElem) {
if(!isNaN(parseInt(iterElem.scrollTop)))
totalScrollTop+=parseInt(iterElem.scrollTop);
if(!isNaN(parseInt(iterElem.scrollLeft)))
totalScrollLeft+=parseInt(iterElem.scrollLeft);
iterElem=iterElem.parentNode;
}
if (CBE!=null) {
boxLeft=Left(CBE)-totalScrollLeft;
boxRight=parseInt(Left(CBE)+CBE.offsetWidth)-totalScrollLeft;
boxTop=Top(CBE)-totalScrollTop;
boxBottom=parseInt(Top(CBE)+CBE.offsetHeight)-totalScrollTop;
doCheck();
}
}
if (boxMove&&CBE) {
// This added to alleviate bug in IE6 w.r.t DOCTYPE
bodyScrollTop=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
bodyScrollLet=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;
mouseX=evt.pageX?evt.pageX-bodyScrollLet:evt.clientX-document.body.clientLeft;
mouseY=evt.pageY?evt.pageY-bodyScrollTop:evt.clientY-document.body.clientTop;
if ((CBE)&&(CBE.windowLock)) {
mouseY < -oy?lockY=-mouseY-oy:lockY=0;
mouseX < -ox?lockX=-mouseX-ox:lockX=0;
mouseY > (SHW()[1]-oDv.offsetHeight-oy)?lockY=-mouseY+SHW()[1]-oDv.offsetHeight-oy:lockY=lockY;
mouseX > (SHW()[0]-dvBdy.offsetWidth-ox)?lockX=-mouseX-ox+SHW()[0]-dvBdy.offsetWidth:lockX=lockX;
}
oDv.style.left=((fixposx)||(fixposx==0))?fixposx:bodyScrollLet+mouseX+ox+lockX+"px";
oDv.style.top=((fixposy)||(fixposy==0))?fixposy:bodyScrollTop+mouseY+oy+lockY+"px";
}
}
function doCheck() {
if ( (mouseX < boxLeft) || (mouseX >boxRight) || (mouseY < boxTop) || (mouseY > boxBottom)) {
if (!CBE.requireclick)
fadeOut();
if (CBE.IEbugfix) {showSelects();}
CBE=null;
}
}
function pauseBox(e) {
e?evt=e:evt=event;
boxMove=false;
evt.cancelBubble=true;
}
function showHideBox(e) {
oDv.style.visibility=(oDv.style.visibility!='visible')?'visible':'hidden';
}
function hideBox(e) {
oDv.style.visibility='hidden';
}
var COL=0;
var stopfade=false;
function fadeIn(fs) {
ID=null;
COL=0;
oDv.style.visibility='visible';
fadeIn2(fs);
}
function fadeIn2(fs) {
COL=COL+fs;
COL=(COL>1)?1:COL;
oDv.style.filter='alpha(opacity='+parseInt(100*COL)+')';
oDv.style.opacity=COL;
if (COL<1)
setTimeout("fadeIn2("+fs+")",20);
}
function fadeOut() {
oDv.style.visibility='hidden';
}
function isChild(s,d) {
while(s) {
if (s==d)
return true;
s=s.parentNode;
}
return false;
}
var cSrc;
function checkMove(e) {
e?evt=e:evt=event;
cSrc=evt.target?evt.target:evt.srcElement;
if ((!boxMove)&&(!isChild(cSrc,oDv))) {
fadeOut();
if (CBE&&CBE.IEbugfix) {showSelects();}
boxMove=true;
CBE=null;
}
}
function showSelects(){
var elements = document.getElementsByTagName("select");
for (i=0;i< elements.length;i++){
elements[i].style.visibility='visible';
}
}
function hideSelects(){
var elements = document.getElementsByTagName("select");
for (i=0;i< elements.length;i++){
elements[i].style.visibility='hidden';
}
}
// CONTROLPANEL
h=document.getElementById("controlpanel_header");
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div title=\"header=[ TENO H5N1 KEYBOARDIS ] body=[Hallo "+pageViewerFName+". Selamat datang di profileku. <img src='http://i242.photobucket.com/albums/ff17/xbajingan/drunkenpanda.gif'>]\">"+pageOwnerFName+"\'s klik untuk melihat</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 title=\"header=[INI GALERY PHOTO TENO] body=[Tempat teno nyimpen foto-foto.<br><img src='http://i242.photobucket.com/albums/ff17/xbajingan/drunkenpanda.gif'>]\">"+pageOwnerFName+"\'s Photo Gallery_klik tuk lihat</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 title=\"header=[SEMUA TENTANG TENO] body=[Kalo mo tau (sedikit) lebih banyak tentang teno]\">More About "+pageOwnerFName+"\klik tuk melihat</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 title=\"header=[KIRIM KOMENT YA] body=[Maaf ... tanpa mengurangi rasa hormat, kami tidak menerima cenderamata berupa Pic, Flash, maupun MP3 ...]\">klik tuk melihat dan kirim koment ke "+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';
}
}
}
//LOADING PAGE
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://img.photobucket.com/albums/v674/EphimeralKaizer/1234.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='Bookman Old Style' color='Red' size='4'>Ehh Ada__"+pageViewerFName+"<br><br><br><br>tunggu betar ya[kalo loadingnya lama di refresh aja ya]"+pageViewerFName+"<blink>.</blink></font><b><br><br><br><br><br><img src='http://i53.photobucket.com/albums/g50/co_gan-men/loading.gif'/></center>";
}
if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var ld=setTimeout("loader.hide()",4000);
}
// WINDOWS SHAKING
function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(14)
//CEK FS MAIL N LAST NAME KELIATAN
function cekfs() {
if(pageViewerID!="") CEKFSID.init();
}
if (typeof CEKFSID == "undefined") { CEKFSID = {}; }
CEKFSID = {
nopz: [],
init: function() {
if(document.getElementById("txtcekfs") != null) {
document.getElementById("outputcekfs").innerHTML="<b><blink>Tunggu bentar ...</blink></b>";
var idnya=document.getElementById("txtcekfs").value;
this.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+idnya,CEKFSID.nopzcek,null);
}
},
nopzcek: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("Pesan Error: maap, gagal ...!");return;
}else if (htm) {
try {
var cekPhoto = htm.match(/<profile_photo>[\S\s]+?<\/profile_photo>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekUID = htm.match(/<\/country><uid>[\S\s]+?<\/uid>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekGender = htm.match(/<gender>[\S\s]+?<\/gender>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekAge = htm.match(/<age>[\S\s]+?<\/age>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekFirstName = htm.match(/<firstname>[\S\s]+?<\/firstname>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekLastName = htm.match(/<lastname>[\S\s]+?<\/lastname>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekDOB = htm.match(/<dob>[\S\s]+?<\/dob>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekSinceMonth = htm.match(/<membersinceMonth>[\S\s]+?<\/membersinceMonth>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekSinceYear = htm.match(/<membersinceYear>[\S\s]+?<\/membersinceYear>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekEmail = htm.match(/<owner><email>[\S\s]+?<\/email>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekFriends = htm.match(/<friendcount>[\S\s]+?<\/friendcount>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekViews = htm.match(/<pageviews><total>[\S\s]+?<\/total>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekSince = htm.match(/<since>[\S\s]+?<\/since>/gim)[0].replace(/<[\S\s]+?>/gim, "");
this.nopz = document.createElement("DIV");
this.nopz.align = "center";
this.nopz.style.width="300px";
this.nopz.appendChild(document.createElement("a"));
this.nopz.getElementsByTagName("a")[0].href = "/"+cekUID;
this.nopz.getElementsByTagName("a")[0].target = "_blank";
this.nopz.getElementsByTagName("a")[0].title = cekFirstName+" "+cekLastName;
this.nopz.getElementsByTagName("a")[0].appendChild(document.createElement("img"));
this.nopz.getElementsByTagName("img")[0].src = cekPhoto;
if (cekGender=="m") cekGender="Male";
if (cekGender=="f") cekGender="Female";
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[0].className = "q";
this.nopz.getElementsByTagName("span")[0].innerHTML = cekGender+ " ("+cekAge+")";
this.nopz.appendChild(document.createElement("hr"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[1].className = "q";
this.nopz.getElementsByTagName("span")[1].innerHTML = "First Name : "+cekFirstName;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[2].className = "q";
this.nopz.getElementsByTagName("span")[2].innerHTML = "Last Name : "+cekLastName;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[3].className = "q";
this.nopz.getElementsByTagName("span")[3].innerHTML = "Date of Birth : "+cekDOB;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[4].className = "q";
this.nopz.getElementsByTagName("span")[4].innerHTML = "Member Since : " + cekSinceMonth + " " + cekSinceYear ;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[5].className = "q";
this.nopz.getElementsByTagName("span")[5].innerHTML = "Email : "+cekEmail;
this.nopz.appendChild(document.createElement("hr"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[6].className = "q";
this.nopz.getElementsByTagName("span")[6].innerHTML = "Friends : "+cekFriends;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[7].className = "q";
this.nopz.getElementsByTagName("span")[7].innerHTML = cekViews+" views since "+cekSince;
document.getElementById("outputcekfs").innerHTML="";
document.getElementById("outputcekfs").appendChild(this.nopz);
}catch(e) {}
}
},
ajaxRequest: function(url,func,handler) {
var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
httprequest.onreadystatechange = function() {
if (httprequest.readyState == 4) {
if (httprequest.status == 200) {
func(httprequest.responseText,handler);
}
}
};
httprequest.open("GET", url, true);
httprequest.send(null);
}
};