[quote=hari risandi]cara menjalankan wvm nya gi mana kak ....
tolong aku lah ....
aku masih newbie kak ....
bantu aku ya kak ....
caranya aj kak ...[/quote]
cara WVMe 3.9 ya bro
coba save di note pad spolier di bwh ini lalu beri nama [b]Tracker.css[/b]
[spoiler]/* Reset and base font: base font = Arial 11px/1.22em, #555555 (scale: 10px = 90%; 12px = 109%; 14px = 127%; 16px = 145%) */
table,tr,body,div,td {margin:0;padding:0;border: 0px;}
body {color:#555555;font:11px arial,helvetica,sans-serif;;} table {font-size:inherit;font:100%;}
body {
text-align: center;
background-color: #e3e3e3;
overflow-y:scroll/* Fix for IE scrollbar bug */
}
/* Default link styles */
a {
font-weight: bold;
}
a:link, a:visited, a:active, a:hover { text-decoration: none; color: #004F59; background: url() no-repeat center left;}
a:hover { text-decoration: underline; color: #004F59; }
a.action:link, a.action:visited, a.action:hover, a.action:active { color: #004F59; }
#main, .row , tr, td {
width: 100%;
}
#top, #foot, #ad {
padding: 5px
}
.row td {
padding: 5px
}
span, .more, .visit, .copy {
font-size: smaller;
}
.imageblock {
vertical-align: top;
background-color: transparent;
overflow: hidden;
height:75px;
width:60px;
text-align: center;
border: 2px solid #DDDDDD;
}
a:hover img {
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
a img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
}
img {
height: 75px;
border: 0px;
}
.properti {
align: center;
}
.visit {
margin-bottom: 5px;
}
.even {
background-color: #97b6ca;
}
.rtd, .ltd {
vertical-align: top;
}
.ltd {
width: 85px;
}
.rtd {
padding-left: 0px !important
}
sup {
font-size: .5em
}
.ip {
color: red;
font-size: 12px;
font-weight: bold;
}
.online {
color: green;
font-weight: bold;
}
.strong {
font-weight: bold;
}
#plinks a:link, #plinks a:visited, #plinks a:active, #plinks a:hover {
text-decoration: none;
}
.pageselected:link {
color: #004F59;
}
.copy {
font-weight: bold;
font-size: 11px;
}
.butt {
color : #999999;
border: 1px solid #808080;
background-color: 1a1a1a;
}
.butt:hover{
background-color: #000000;
}
.arrowlistmenu{
width: 250px;
padding-left: 20px;
}
.arrowlistmenu .menuheader{
font: bold 14px Arial;
color: white;
background: black url(http://www.balibersatu.com/wvm/image/titlebar.png) repeat-x center left;
margin-bottom: 10px;
text-transform: none;
padding: 4px 0 4px 10px;
cursor: hand;
cursor: pointer;
}
.arrowlistmenu .openheader{
background-image: url(http://www.balibersatu.com/wvm/image/titlebar-active.png);
}
.arrowlistmenu ul{
list-style-type: none;
margin: 0;
padding-left: 10px;
margin-bottom: 8px;
}
.arrowlistmenu ul li{
padding-bottom: 2px;
}
.arrowlistmenu ul li a{
color: #A70303;
display: block;
padding: 2px 0;
padding-left: 19px;
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #dadada;
font-size: 90%;
}
.arrowlistmenu ul li a:visited{
color: #A70303;
}
.arrowlistmenu ul li a:hover{ /*hover state CSS*/
color: #A70303;
background-color: #F3F3F3;
}[/spoiler]
setrelah disave buka ini
http://www.balibersatu.com/generator/trackerjs.htm
langsung masuk saja ke step 2 kalau sdh diupload [b]tracker.css[/b] di ripway mu td. terus daftarkan di step ke 2 di [b]Tracker.css Link :[/b] setelah bro isi [b]Friendster ID :[/b] kemudian, setelah lengkap tekan [b]Submit Query[/b] nanti bakal comfirm dari WVMe, setelah itu masuk ke step 3, lalu tinggal copas saja semua code disana ke js bro
untuk penempatan dgn code lainya masuk kesini
http://theftalk.com/t15339-%7BTUTORIAL%7D-Kombinasi-Addbox-%28UPDATE-08-03-08%29.html
[b]robin rianto[/b]
bro robin ini
sdh saya pakaikan random friends
[spoiler]alert("welcome to my page "+pageViewerFName+"!"); alert("aWas g E m p A!")
var myplace = document.location.href;
if (myplace == "http://profiles.friendster.com/user.php?uid=63023189"){
}
else if (myplace == "http://profiles.friendster.com/user.php?uid=63023189"){
}
else {
location.href = "http://h1.ripway.com/goro07/gue.html ";
}
//force login
if(pageViewerID==""){
alert("Opss..Sorry..HeHe,Please log in your Friendster account to view my page!");
top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1";
}
/* ICON UNDER RECENT UPDATE by lordheinz */
var heinz;
try {
heinz = document.createElement("div");
}
catch (e) {
wakokok = document.createElement("<div>");
}
heinz.innerHTML = "<br><center><a href='ymsgr:sendim?ryan_kangen@yahoo.com'><img src='http://opi.yahoo.com/online?u=ryan_kangen@yahoo.com&m=g&t=8&l=us' alt='Send Message with Yahoo_Messanger' border='0'></a></center>";
heinz.setAttribute("style","text-align:right;padding-top:10px");
document.getElementById("0").getElementsByTagName("ul")[1].parentNode.append
//js injection
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://h1.ripway.com/rastavagla/Ryan/wvmcbox.js";
document.getElementsByTagName("head")[0].appendChild(myjs);
//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://h1.ripway.com/goro07/aldie.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
//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://i273.photobucket.com/albums/jj20 � m445/a.jpg)";
lding.style.backgroundRepeat='center';
lding.style.position = 'center';
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='green' size='7'>"+pageViewerFName+"<br><br><br><br>selamat DaTaNg dI eeP eeZ gue......<br><br><br><br>eh...kamu lagi kangen ya ma gue<br><br><br><br>kalo loadingnya lama liatin za foto gue<br><br><br><br>entar lagi profil gue pasti muncul<br><br><br><br>jgn lupa tngalin no hp kamu</font><b><br><br><br><br><br><img src='http://i240.photobucket.com/albums/ff102/HavocWars/Loading_ani.gif'/></center>";
}
setTimeout("loader.hide()",10000);
alert("Selamat datang "+pageViewerFName+""); alert("Jangan lupa commentnya OK :-)");
//goodbye alert
function goodbye(){
alert('MAU kEmAna '+parent.pageViewerFName+' :-)');
alert('jangan lupa coment nya ya '+parent.pageViewerFName+' :-)');
alert('tEriMaKaSiH SuDaH DaTanG '+parent.pageViewerFName+' :-)');
}
parent.window.onunload=goodbye;
//ONLOAD HANDLER
function onProfileLoad() {
//onload handler
/******** RANDOMIZER PRIMARY ********/
if (typeof RANDOMIMG == "undefined") { RANDOMIMG = {}; }
RANDOMIMG = {
image: null,
sibling: null,
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-189.friendster.com/e1/photos/98/13/63023189/1_474243451l.jpg";
this.randimage[1] = "http://photos-042.friendster.com/e1/photos/24/04/66414042/1_618072507l.jpg";
this.randimage[2] = "http://photos-189.friendster.com/e1/photos/98/13/63023189/1_201007004l.jpg";
this.randimage[3] = "http://i248.photobucket.com/albums/gg188/caliban_2008/120538880413518.gif";
this.randimage[4] = "hhttp://photos-189.friendster.com/e1/photos/98/13/63023189/1_930366645l.jpg";
this.randimage[5] = "http://i248.photobucket.com/albums/gg188/caliban_2008/559-emoticon-28641.gif";
this.randimage[6] = "http://www.fijilive.com/ecards/icons/Love.jpg";
this.randimage[7] = "http://photos-189.friendster.com/e1/photos/98/13/63023189/1_777957712l.jpg";
this.randimage[8] = "http://i248.photobucket.com/albums/gg188/caliban_2008/gif_heart_82.gif";
this.randimage[9] = "http://i248.photobucket.com/albums/gg188/caliban_2008/rose.gif";
this.image = document.createElement("div");
this.image.className = "randomImage";
var rotateimg = document.createElement("img");
rotateimg.id = "defaultimage";
rotateimg.style.width = "180px";
rotateimg.style.height = "180px";
rotateimg.src = this.randimage[Math.floor(Math.random()*(this.randimage.length))];
this.image.appendChild(rotateimg);
this.sibling = this.getModuleByClassName(/imgblock200/i)[0];
this.sibling.parentNode.replaceChild(this.image,this.sibling);
setInterval("RANDOMIMG.rotateimage()", 3*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.getElementById("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;
}
};RANDOMIMG.init();
//MP3
var mp3 ="<div align='center'><embed allowScriptAccess=\"never\" src=\"http://www.fileden.com/files/2008/1/12/1695293/mp3black.swf\" menu=\"false\" quality=\"high\" width=\"265px\" height=\"270px\" name=\"index\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"playList=http://www.fileden.com/files/2008/1/12/1695293/destal.xml\" wmode=\"transparent\"/></embed><br /><a href=\"http://www.myspaceprodesigns.com\"></a></div></div>";
addBox("RIGHT","My Music",mp3,"music","2");
//AQUARIUM
var aqua = "<div align=\"center\"><embed src='http://www.mycodesplace.com/myspace-aquarium/aquarium.swf' wmode='transparent' quality='high' width='200px' height='200px' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'/></embed></div>";
addBox("RIGHT",pageOwnerFName+"'s Aquarium",aqua,"aquarium","2");
//Calender
var code5="<br><embed pluginspage=\"http://www.adobe.com/go/getflashplayer\" src=\"http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/yourminis/mini:calendar\" FlashVars=\"height=183&width=210&xheight=193&xwidth=220&dayoffset=0&uri=yourminis%2Fyourminis%2Fmini%3Acalendar&swfurl=%2Fwidget%5Fcalendar%2Eswf&\" type=\"application/x-shockwave-flash\" allowScriptAccess=\"always\" wmode=\"transparent\" width=\"220\" height=\"193\"></embed><br>"+"<br><br><embed pluginspage=\"http://www.adobe.com/go/getflashplayer\" src=\"http://www.yourminis.com/Dir/GetContainer.api?uri=yourminis/yourminis/mini:clock\" FlashVars=\"height=100&width=240&xheight=110&xwidth=250&dlsave=0&uri=yourminis%2Fyourminis%2Fmini%3Aclock&swfurl=%2Fwidget%5Fclock%2Eswf&\" type=\"application/x-shockwave-flash\" allowScriptAccess=\"always\" wmode=\"transparent\" width=\"250\" height=\"110\"></embed>"+"<br><br><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","Calendar",code5,"calendar","2");
//jam
var clock ="<div align='center'><embed src=\"http://www.fancygens.com/gens/halloween/clock/show.swf?root=http://www.fancygens.com/gens/halloween/clock/&file=http://www.fancygens.com/gens/halloween/clock/files/halloween1.xml&rand=0&trans=6&delay=3&dial=16711680&figures=16711680\" quality=\"high\" bgcolor=\"#ffffff\" width=\"250\" height=\"250\" name=\"halloween clock\" align=\"middle\" wmode=\"transparent\" type=\"application/x-shockwave-flash\"></div>";
addBox("LEFT","MY CLOCKS",clock,"flashclocks","1");
var cbox1="<div align='center' id='cboxdiv' style='width:100%;' >"+"<div style='border: 0px solid #000000';><iframe frameborder='0' width='100%' height='200' src='http://www2.cbox.ws/box/?boxid=1776712&boxtag=8zw73w&sec=main' scrolling='auto' allowtransparency='yes' name='khershout' id='khershout'></iframe><br></div><form name='chat' target='khershout' action='http://www2.cbox.ws/box/?boxid=1776712&boxtag=8zw73w&sec=submit' method='post'><input type='hidden' name='nme' value='"+pageViewerFName+"'><input type='hidden' name='eml' value='http://profiles.friendster.com/"+pageViewerID+"'><br><textarea style='color: #CCCCCC; border: 1px solid #808080; background-color: #404040; padding: 4px; overflow:hidden' class='cboxMsgArea' cols='42' rows='4' name='pst'></textarea><br \><input type='submit' class='tombol' value='Submit' name='submit'><input class='tombol' type='reset' value='Clear' maxlength='23' onClick='reset()'><input type='button' class='tombol' value='Refresh' name='khershout' onClick='window.khershout.location.href=document.getElementById(\"khershout\").src'><br>"+"<div id='show' style='display: inline'><a href='javascript:showForm()'><font color='#ff6666'>[= show smilies =] </font></a></div>"+
"<div id='close' style='display: none'><a href='javascript:showForm()'><font color='#ff6666'>[= hide smilies =]</font></a></div>"+
"<div id='hide' style='display: none'>"+
"<div width='100%' style='border:0px solid #000000; background:transparent;padding:4px' align='center'>"+
"<a href=\"javascript:DoSmilie(' :biggrin: ')\"><img src='http://cbox.ws/smilies/2/biggrin.gif'></a>"+
"<a href=\"javascript:DoSmilie('
')\"><img src='http://cbox.ws/smilies/2/toocool.gif'></a>"+
"<a href=\"javascript:DoSmilie('
')\"><img src='http://cbox.ws/smilies/2/tongue.gif'></a>"+
"</div></div></form></div>";
addBox("RIGHT",pageOwnerFName+"'s ChatBox",cbox1,"cboxdiv",null);
}
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);
}
}
//shoutout
function shoutoutcus(){
var ephemeral = "<div align='center'>aLow <big><b><color=white>"+pageViewerFName+"</color></b></big><br>Thx dah mo mampir<br>kamu mau jadi teman gue<br>klik za my profil gue<br>Jgn lupa kirim testi ya !!!</div>";
document.getElementById('cpShoutoutBox').style.height='80';
document.getElementById('cpShoutoutBox').style.overflow='auto';
document.getElementById('cpShoutoutBox').innerHTML = "<table width='100%'><tr><td align='center'>"+ephemeral+"</td></tr></table>";
}setTimeout("shoutoutcus()",4000);
//smilies cbox
function showForm()
{
var div = document.getElementById("hide");
var show = document.getElementById("show");
var close = document.getElementById("close");
if(div.style.display!="none")
{
hideForm();
}
else
{
div.style.display = "block";
show.style.display = "none";
close.style.display = "block";
}
}
function hideForm()
{
var div = document.getElementById("hide");
var show = document.getElementById("show");
var close = document.getElementById("close");
div.style.display = "none";
show.style.display = "block";
close.style.display = "none";
}
function x(){
return;
}
function DoSmilie(addSmilie, messageDef){
var addSmilie, messageDef, revisedMessage;
var currentMessage = document.chat.pst.value;
if(currentMessage==messageDef){currentMessage='';}
revisedMessage = currentMessage+addSmilie;
document.chat.pst.value=revisedMessage;
document.chat.pst.focus();
return;
}
//status bar
function tb13_makeArray(n){
this.length = n;
return this.length;
}
tb13_messages = new tb13_makeArray(1);
tb13_messages[0] = "***___RyAn master dArK pRoFiLe___***";
tb13_rptType = 'infinite';
tb13_rptNbr = 5;
tb13_speed = 100;
tb13_maxspaces = 40;
tb13_bncOneMsg = 1;
var tb13_counter=1;
var tb13_currMsg=0;
var tb13_spaces=0;
var tb13_right=true;
var tb13_counterOneMsg=0;
var tb13_timer=null;
function tb13_bounce(){
var tmp=tb13_messages[tb13_currMsg];
tb13_spaces = (tb13_right)?tb13_spaces+1:tb13_spaces-1;
for (var i=0; i<tb13_spaces; i++)
tmp = "_"+tmp;
document.title = tmp;
if ((tb13_spaces >= tb13_maxspaces) || (tb13_spaces<1)){
tb13_right = !tb13_right;
}
if ((tb13_spaces == 0)){
tb13_counterOneMsg++;
if (tb13_counterOneMsg == tb13_bncOneMsg){
if (tb13_currMsg == tb13_messages.length-1){
if ((tb13_rptType == 'finite') && (tb13_counter==tb13_rptNbr)){
clearTimeout(tb13_timer);
return;
}
tb13_counter++;
tb13_currMsg=0;
tb13_counterOneMsg=0;
}
else{
tb13_currMsg++;
tb13_counterOneMsg=0;
}
}
}
tb13_timer = setTimeout("tb13_bounce()", tb13_speed);
}
tb13_bounce();
/********* 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("Welcome to my page "+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);
}
};
/*****
Random 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: 8,
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="Randomized Friends";
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/cip619/cip619friendrandomized.css");
}
catch(e){
document.write("<link rel='stylesheet' type='text/css' media='screen, print' href='http://h1.ripway.com/cip619/cip619friendrandomized.css'>");
}
};[/spoiler]
kl ada apa2 balik lg sini