PREVIEW
[url=http://imageshack.us][img]http://img157.imageshack.us/img157/6875/bayksa4.gif[/img][/url]
[quote]if (!attachOnLoadHandler(function(){siputberlari()})) parent.onload = function(){siputberlari()};
function siputberlari() {
var kawanku = "<div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='[b]USERID[/b]'><img src='[b]PHOTOURL[/b]'></a></div><div class='dr'><a href='[b]USERID[/b]'>[b]NAME[/b]</a></div></div></div></div><br></div></div><div class='viewall'><a href='/friends/[b]YOUROWNUSERID[/b]'>VIEW ALL</a></div>";
addSideBar("[b]MY FRIENDS[/b]",kawanku,"siputbox");
}
//add sidebar script
function addSideBar(head,htm,div_id) {
var innerHtm=htm;
var cont=
"<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+div_id+"'>"+
innerHtm+
"</div>"+
"</div>";
try {
var obj=document.createElement("<li>");
} catch(e) {
var obj=document.createElement("li");
}
var x=document.getElementById("2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}[/quote]
Put in your external JS
Replace the bold text
for the [b]USERID[/b]...just get the id no.. eg:34641383
Thank to Jagcopra for updating..
Last edited by Shirow Masamune (2008-12-31 20:05:40)