[quote=blue dark]kk ilhamc17 saya da ikutin saran dari kk
tetep za gak mau muncul
coba kk liat deh[/quote]
coba susun ulang yg ini
[spoiler]function onProfileLoad() {
tombol_comment=document.getElementById("content_18").getElementsByTagName("div")[0];
tombol_comment.style.textAlign="center";
tombol_comment.innerHTML=" ";
for (i=0;i<10;i++) {
fotosrc=document.getElementById("18").getElementsByTagName("td")[2*i].getElementsByTagName("div")[0].getElementsByTagName("img")[0].getAttribute("src");
tglPost=document.getElementById("content_18").getElementsByTagName("ul")[0+1*i].getElementsByTagName("li")[1].innerHTML;
komensrc=document.getElementById("content_18").getElementsByTagName("ul")[0+1*i].getElementsByTagName("li")[2].innerHTML;
ulcomment=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0];
linkcommentor=ulcomment.getElementsByTagName("li")[0].getElementsByTagName("a")[0];
commentorName=linkcommentor.innerHTML.replace(/"/g,"").replace(/'/g,"");
commentorHref=linkcommentor.getAttribute("href");
tombol_comment.innerHTML+="<span style='padding-left:5px;'><a href='"+commentorHref+"'><img src=\"http://h1.ripway.com/agam789/"+i+".gif\" height=\"35px\" width=\"35px\" class=\"imgblock75\" title=\"header=[<img src='"+fotosrc+"' style='width:164px;border:2px solid #990000;'><br><br>"+commentorName+"<br>] body=["+tglPost.replace(/"/g,'')+"<br>"+komensrc.replace(/"/g,'').replace(/([*\[]|[*\]])/g,'*')+"]\"></a></span>";
divcomment=document.getElementById("content_18").getElementsByTagName("div")[2*i+1];
divcomment.style.display="none";
fototd=document.getElementById("18").getElementsByTagName("td")[2*i];
fototd.style.display="none";
}[/spoiler]
jadi gini
[spoiler]tombol_comment=document.getElementById("content_18").getElementsByTagName("div")[0];
tombol_comment.style.textAlign="center";
tombol_comment.innerHTML=" ";
for (i=0;i<10;i++) {
fotosrc=document.getElementById("18").getElementsByTagName("td")[2*i].getElementsByTagName("div")[0].getElementsByTagName("img")[0].getAttribute("src");
tglPost=document.getElementById("content_18").getElementsByTagName("ul")[0+1*i].getElementsByTagName("li")[1].innerHTML;
komensrc=document.getElementById("content_18").getElementsByTagName("ul")[0+1*i].getElementsByTagName("li")[2].innerHTML;
ulcomment=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0];
linkcommentor=ulcomment.getElementsByTagName("li")[0].getElementsByTagName("a")[0];
commentorName=linkcommentor.innerHTML.replace(/"/g,"").replace(/'/g,"");
commentorHref=linkcommentor.getAttribute("href");
tombol_comment.innerHTML+="<span style='padding-left:5px;'><a href='"+commentorHref+"'><img src=\"http://h1.ripway.com/agam789/"+i+".gif\" height=\"35px\" width=\"35px\" class=\"imgblock75\" title=\"header=[<img src='"+fotosrc+"' style='width:164px;border:2px solid #990000;'><br><br>"+commentorName+"<br>] body=["+tglPost.replace(/"/g,'')+"<br>"+komensrc.replace(/"/g,'').replace(/([*\[]|[*\]])/g,'*')+"]\"></a></span>";
divcomment=document.getElementById("content_18").getElementsByTagName("div")[2*i+1];
divcomment.style.display="none";
fototd=document.getElementById("18").getElementsByTagName("td")[2*i];
fototd.style.display="none";
}[/spoiler]
klo hasilna sama, mungkin ada script yg gak berguna ada di JS kamu!!
coba hapus aja itu!!
Last edited by ilhamc17 (2008-06-22 07:28:47)