Membuat Spoiler di blog

Jumat, 17 Februari 2012

print this page
send email
Cara membuat Spoiler di blog.
Saya akan share sedikit tentang "Cara membuat spoiler di blog". Spoiler berfungsi untuk memperkecil tulisan atau kode script agar menghemat tempat. Berikut ini adalah contoh spoiler yang saya lihat dari Blogging Is My Life.
Spoiler is slang for any element of any summary or description of any piece of fiction that reveals any plot element which will give away the outcome of a dramatic episode within the work of fiction, or the conclusion of the entire work. It can also be used to refer to any piece of information regarding any part of a given media. Because enjoyment of fiction sometimes depends upon the dramatic tension and suspense which arises within it, the external revelation of such plot elements can "spoil" the enjoyment that some consumers of the narrative would otherwise have experienced.

Dan bagaimana cara membuatnya? Yaitu letakkan kode berikut dipost yang akan diberi spoiler.
<div style="margin: 5px;"><div class="bigfont" style="margin-bottom: 2px;"><input value="Open" style="margin: 0px; padding: 0px; width: 100%;"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'; }" type="button"></div><div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;"><div style="display: none;">LETAKKAN KODENYA DISINI</div></div></div>
Sekian, baca lebih lanjut dari blog sumber...

0 komentar:

Posting Komentar

Archives by Labels

Check Page Rank of your Web site pages instantly:

This page rank checking tool is powered by Page Rank Checker service