Berikut cara Membuat Spoiler Pada Postingan :
Anggap saja Anda sedang membuat sebuah postingan, kemudian klik pada TabEdit HTML.
Lalu letakkan kode berikut :
<div style="margin: 5px 20px 20px;"><div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> : <input 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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 55px;" type="button" value="Open" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; text-align: left;">
<div style="display: none;">
Isi Spoiler
</div>
</div>
</div>
Isi Spoiler : Isi dengan kode gambar, video, atau kode html lainnya.
Sebagai contoh saya gunakan kode berikut :
<div style="margin: 5px 20px 20px;"><div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> : <input 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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 55px;" type="button" value="Open" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; text-align: left;">
<div style="display: none;">
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjK4OccljjZnwpEC4JV8btRy8RsjMexNeE51rLAdhR3vBd_SOhdDG8xeKHo8mmRGlTmSXf9lAApJaaCauIN8ZCVJplLcwVSPUItWd5U78ruSEjasJ9JDY0sEArabvK3j475F6MFELAHfsE/s1600/Pantun+Gokil.jpg
</div>
</div>
</div>
</div>
</div>
Isi Spoiler : Isi dengan kode gambar, video, atau kode html lainnya.
Sebagai contoh saya gunakan kode berikut :
<div style="margin: 5px 20px 20px;"><div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> : <input 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 = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Open'; }" style="font-size: 11px; margin: 0px; padding: 0px; width: 55px;" type="button" value="Open" /></div>
<div class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; text-align: left;">
<div style="display: none;">
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjK4OccljjZnwpEC4JV8btRy8RsjMexNeE51rLAdhR3vBd_SOhdDG8xeKHo8mmRGlTmSXf9lAApJaaCauIN8ZCVJplLcwVSPUItWd5U78ruSEjasJ9JDY0sEArabvK3j475F6MFELAHfsE/s1600/Pantun+Gokil.jpg
</div>
</div>
</div>
Spoiler :
Jangan Lupa Di Like Ya Gan...
Tidak ada komentar:
Posting Komentar