[quote=odloc]sya gag tw, sjak awal sya cma d ksih js mntah, jdi'a gag tw ap2.......
oh ya, ni js sya.....
tlong d cek......
& also, tlong d cri kslahan button yg d komen itu...[/quote]
coba yg ini bro ...
[quote]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="transparent";
ulcmntx.getElementsByTagName("li")[2].style.color="#6699cc";
ulcmntx.getElementsByTagName("li")[2].style.padding="17px 10px 10px 80px";
ulcmntx.getElementsByTagName("li")[2].style.lineHeight="18.4px";
tombol_cmntx.innerHTML+=" <img src=\"http://dabuckzsk8er.fileave.com/button/+i+".png\" 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/ndy05/emoticon/smile_icon.gif\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/ndy05/emoticon/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/ndy05/emoticon/msg_icon.gif\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/ndy05/emoticon/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/ndy05/emoticon/img_icon.png\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/ndy05/emoticon/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/ndy05/emoticon/com_icon.gif\" align='middle' style='display:inline;' title=\"header=[<img src='http://h1.ripway.com/ndy05/emoticon/com_icon.gif' align='absmiddle'> REPLY COMMENT] body=[Balas komentar untuk "+xcmntName+"]\"></a>";
fototd.style.display="none";
}[/quote]
jangan pnah kapok bro blajar gini'an ..
Last edited by sanji (2008-08-16 10:10:39)