Sunday, March 27, 2011

Membuat Spoiler

By Imam Jabar   Posted at  7:27 PM   Tutorial No comments
Spoiler apakah itu?

1.


2.


Itu tuh yang namanya spoiler. Dan gw posting ini, biar ga lupa gimana cara ngebuat spoilernya




Untuk yang 1 ,


<div><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;"><i><span style="font-weight: bold;">Judul</span></i><input value="Show" style="margin: 0px; padding: 0px; width: 60px; " 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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" type="button"/>
</div>
<div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;">
<div style="display: none;">
isi spoiler
</div></div></div></div>

Ket : Tinggal diganti tuh yang warna merah, sesuai kebutuhan!




Yang 2,

<div id="spoiler"><div><div id="show" color="transparent" style="border-style: solid; border-width: 1px; margin: 0px; padding: 4px; display: none; width: 98%;"></div><div id="spoiler"><div><input value="Show Spoiler!" style="margin: 10px; padding: 0px; width: 100px;font-size:12;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" type="button"><br/><div id="show" style="border-style: solid; border-width: 0px; margin: 0px; padding: 4px; display: none; width: 98%;color:black;">
isi spoiler
</span></div></div></div></div></div>


Ket : tinggal ganti yang warna merah!!

contoh: mau bikin spoiler mr bean pake yang 1 ! nih link



<a href="http://tinypic.com?ref=2hg5k47" target="_blank"><img src="http://i54.tinypic.com/2hg5k47.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

Jadi:
<div><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;"><i><span style="font-weight: bold;">Mr Bean</span></i><input value="Show" style="margin: 0px; padding: 0px; width: 60px; 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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" type="button"/>
</div>
<div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;">
<div style="display: none;">
<a href="http://tinypic.com?ref=2hg5k47" target="_blank"><img src="http://i54.tinypic.com/2hg5k47.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
</div></div></div></div>


Hasilnya:

Mr Bean




Image and video hosting by TinyPic


Sumber

-------
Catatan cara menampilkan kode script:
# Kode < diganti menjadi '&lt;'
# Kode " diganti menjadi '&quot;'
# Kode > diganti menjadi '&gt;'
ket: tanpa '
atau masuk sini
--------

About Imam Jabar

Nulla sagittis convallis arcu. Sed sed nunc. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.
View all posts by: Imam Jabar

0 comments:

No SPAM, No Porn, No SARA

Please...

Connect with Us

What they says

Socials

Navigation

English French German Spain Italian Dutch

Russian Portuguese Japanese Korean Arabic Chinese Simplified

Popular Posts

© 2014 ENJOY YOUR LIFE!. WP Mythemeshop converted by Bloggertheme9 Published By Kaizen Template.
Powered by Blogger.
back to top