i Try This..
But Not Work Why?
This My Script
Please Chek This...Any Wrong With My Script?
[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='49139603'><img src='http://www.friendster.com/photos/49139603/1/300945625'></a></div><div class='dr'><a href='49139603'>Lilyan</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41010997'><img src='http://www.friendster.com/photos/41010997/1/180643568'></a></div><div class='dr'><a href='41010997'>Meyza</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='24407359'><img src='http://www.friendster.com/photos/24407359/1/640695325'></a></div><div class='dr'><a href='24407359'>Ditha</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='65612032'><img src='http://www.friendster.com/photos/65612032/1/452034105'></a></div><div class='dr'><a href='65612032'>Radya Saveraka</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='53378122'><img src='http://www.friendster.com/photos/53378122/1/196140552'></a></div><div class='dr'><a href='53378122'>Arditha</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='36208225'><img src='http://www.friendster.com/photos/36208225/1/974642059'></a></div><div class='dr'><a href='36208225'>Iis</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='24817167'><img src='http://www.friendster.com/photos/24817167/0/317970406'></a></div><div class='dr'><a href='24817167'>Heirna</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='61893831'><img src='http://www.friendster.com/photos/61893831/1/346099601'></a></div><div class='dr'><a href='61893831'>Arinie</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='62387924'><img src='http://www.friendster.com/photos/62387924/1/477161721'></a></div><div class='dr'><a href='62387924'>Yulia</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='44976172'><img src='http://www.friendster.com/photos/44976172/1/224980914'></a></div><div class='dr'><a href='44976172'>Echa</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='50667944'><img src='http://www.friendster.com/photos/50667944/1/240728322'></a></div><div class='dr'><a href='50667944'>Lia</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='56591970'><img src='http://www.friendster.com/photos/56591970/1/100751507'></a></div><div class='dr'><a href='56591970'>Dedeo</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='42373627'><img src='http://www.friendster.com/photos/42373627/1/499439927'></a></div><div class='dr'><a href='42373627'>Purie</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='19177244'><img src='http://www.friendster.com/photos/19177244/0/239446381'></a></div><div class='dr'><a href='19177244'>Febie</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='53577689'><img src='http://www.friendster.com/photos/53577689/1/783115729'></a></div><div class='dr'><a href='53577689'>Risca</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='54207759'><img src='http://www.friendster.com/photos/54207759/1/778698941'></a></div><div class='dr'><a href='54207759'>Mike</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='40849146'><img src='http://www.friendster.com/photos/40849146/1/658014210'></a></div><div class='dr'><a href='40849146'>Alma</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='58229161'><img src='http://www.friendster.com/photos/58229161/1/929680208'></a></div><div class='dr'><a href='58229161'>My Sister</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='43947201'><img src='http://www.friendster.com/photos/43947201/1/401566587'></a></div><div class='dr'><a href='43947201'>Indah</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='37082612'><img src='http://www.friendster.com/photos/37082612/1/332576908'></a></div><div class='dr'><a href='37082612'>Cippa</a></div></div></div></div><br></div></div><div class='viewall'><a href='/friends/63563093'>VIEW ALL</a></div>";
addSideBar("My Friendship",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("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}[/quote]
Last edited by vetra9 (2008-08-04 18:33:16)