Thursday, April 7, 2011

Kode Spoiler HTML

Kode spoiler image 

<div style="padding: 10px;">
<div style="margin-bottom: 2px;"><b>Sumber Berita :</b>
<input value="Buka" style="border:2px inset ;margin:0px; width: 60px;color:#000; font-size: 10px; height:20px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Tutup'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Buka'; }" type="button"> </div>
<div style="margin: 10px 0 0px 0; padding: 5px; border: 2px inset #fff;">
<div style='display:none'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8BJA89vuzu7JrY5AEVtVrJDl916yKRCCurPBpZtN-wcid4Upx1KGSvn35TzonkYciZid2XMpsTtKcc7n-LRztal2eGpHOc_fHQp3xedgsEjAP4kGt__QlKuQvNy5NWdEsBh9RIUxarjBm/'/></div>
</div>
</div>


Kode spiler teks 

<div style="padding: 10px;">
<div style="margin-bottom: 2px;"><b>Judul Spoiler Biasa :</b>
<input value="Buka" style="border:2px inset ;margin:0px; width: 60px;color:#000; font-size: 10px; height:20px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Tutup'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Buka'; }" type="button"> </div>
<div style="margin: 10px 0 0px 0; padding: 5px; border: 2px inset #fff;">
<div style='display:none'>ISI SPOILER</div>
</div>
</div>


Contoh :



Kode spoiler image
Maaf Numpang Exis :

Kode spiler teks
CILUUUUUKKKK :
BAAAAAAA!!!!!

0 comments:

Post a Comment