Belajar dan Berbagi Ilmu,Informasi,Software,Mp3,Picture,Dll

 

Test Buat Spoiler di Blogspot

Kali ini Andra mau belajar buat spoiler...kira kira hasilnya nanti seperti ini :

Spoiler [Gambar Berbahaya] :



Caranya ternyata gampang.
Pada saat posting copy script berikut :


Spoiler [Kode Script Spoiler] :


<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>SPOILER <em>[SPOILER 2]</em></b> : <input value="Lihat" style="margin: 0px; padding: 0px; width: 100px; font-size: 10px;" 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 = 'Sembunyikan'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Lihat'; }" type="button"> </div>

<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display:none;">
[ISI SPOILER]</div>
</div>
</div>


Ket :
Ganti SPOILER,SPOILER 2 sesuai keinginan
ISI SPOILER bebas,jika berupa gambar contohnya seperti ini http://2.bp.blogspot.com/-UhjAKM4IakU/UKJIBEVFOTI/AAAAAAAAAtg/lMyMYR7wz7A/s1600/Agnes%2BMonica%2B-%2BMuda%2B%2528Le%2BO%2BLe%2BO%2529.jpg

Comments :

0 komentar to “Test Buat Spoiler di Blogspot”

Poskan Komentar

Sering Dibaca

ping.sg - the community meta blog for singapore bloggers