Re: Update 04-06-2008 :
[quote]Perubahan :
- penambahan fungsi utama getElementsByClassName
- perubahan script (tak ada perubahan pada css)
Perbaikan dari versi sebelumnya :
- tidak tergantung dari
[spoiler]var spasi5="&nb"+"sp;"+"&nb"+"sp;"+"&nb"+"sp;"+"&nb"+"sp;"+"&nb"+"sp;";
dirkomentar="http://www.fileden.com/files/2007/9/17/1438724/";
boxkomentar=document.getElementById("content_18");//
tombolkomentar=boxkomentar.getElementsByTagName("div")[0];
tombolkomentar.style.textAlign="center";
tombolkomentar.innerHTML=" ";
divkomentar=getElementsByClassName("fitem1wrapper","div",boxkomentar);
for (i=0;i<divkomentar.length;i++) {
divitd=divkomentar[i].getElementsByTagName("td")[0];
fotosrc=divkomentar[i].getElementsByTagName("img")[0].getAttribute("src");
datakomentar=divkomentar[i].getElementsByTagName("ul")[0];
titlekomentar=datakomentar.getElementsByTagName("li")[0];
atitlekomentar=titlekomentar.getElementsByTagName("a")[0];
namakomentar=atitlekomentar.innerHTML.replace(/"/g,"").replace(/'/g,"");
linkkomentar=atitlekomentar.getAttribute("href");
datakomentar.title="header=[= "+namakomentar+" =] body=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] fixedabsx=[800] offsety=[-30]";
datakomentar.getElementsByTagName("li")[2].setAttribute("style","background:#FFFFFF url("+dirkomentar+"kertas.jpg);color:#000;padding:17px 10px 10px 80px;line-height:18.4px");
tombolkomentar.innerHTML+=" <img src=\""+dirkomentar+i+".gif\" class=\"shakeimage\" onmouseover=\"munculkomen('"+i+"')\" title=\"header=[= "+namakomentar+" =] body=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] fixedabsx=[800] offsety=[30]\"> ";
titlekomentar.innerHTML="<div style=\"float:left\"><a target='_blank' href='"+linkkomentar+"'>"+namakomentar+"</div>"+
"<div>"+spasi5+"<a target='_blank' href='"+linkkomentar.replace(/profiles.friendster.com\//i,"www.friendster.com/sendmessage.php?uid=")+"&action=sendsmile' style='background:none;padding:0px'><img src=\""+dirkomentar+"smile_icon.gif\" align='absmiddle' style='display:inline;' title=\"header=[<img src='"+dirkomentar+"smile_icon.gif' align='absmiddle'> SEND SMILE] body=[Kirim smile untuk "+namakomentar+"]\"></a>"+
spasi5+"<a target='_blank' href='"+linkkomentar.replace(/profiles.friendster.com\//i,"www.friendster.com/sendmessage.php?uid=")+"' style='background:none;padding:0px'><img src=\"http://images.friendster.com/images/samsg_icon.gif\" align='absmiddle' style='display:inline;' title=\"header=[<img src='http://images.friendster.com/images/samsg_icon.gif' align='absmiddle'> SEND MESSAGE] body=[Kirim message untuk "+namakomentar+"]\"></a>"+
spasi5+"<a target='_blank' href='"+linkkomentar.replace(/profiles.friendster.com\//i,"www.friendster.com/photos/")+"' style='background:none;padding:0px'><img src=\""+dirkomentar+"img_icon.png\" align='absmiddle' style='display:inline;' title=\"header=[<img src='"+dirkomentar+"img_icon.png' align='absmiddle'> PHOTOS] body=[Lihat foto-foto milik "+namakomentar+"]\"></a>"+
spasi5+"<a target='_blank' href='"+linkkomentar.replace(/profiles.friendster.com\//i,"www.friendster.com/comments.php?uid=")+"' style='background:none;padding:0px'><img src=\"http://images.friendster.com/images/sn_msg_icon.gif\" align='absmiddle' style='display:inline;' title=\"header=[<img src='http://images.friendster.com/images/sn_msg_icon.gif' align='absmiddle'> REPLY COMMENT] body=[Balas komentar untuk "+namakomentar+"]\"></a></div>";
divitd.style.display="none";
divkomentar[i].style.display="none";
}[/spoiler]
pilihan alternatif filehosting :
dirkomentar="http://www.fileden.com/files/2007/9/17/1438724/";
dirkomentar="http://h1.ripway.com/nopathz/images/";
dirkomentar="http://www.geocities.com/nopathz/";
dirkomentar="http://nopathz.t35.com/images/";
ini maksudnya gmn bang???...url css..jss atau apa:question: