Artikel kali ini saya akan mencoba memberikan script menampilkan dan menyembunyikan object yang akan anda masukkan ke dalam posting ataupun widget html/javasript seperti tampilan dibawah ini:
silakan anda copy script di bawah ini:
sebagai contoh kunjungi http://ndeyex-movies.blogspot.com/p/tv.html
silakan anda copy script di bawah ini:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<input type="button" value="show" style="width:60px;font-size:10px;margin:0px;padding:0px;" 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'; }"/>
</div>
<div class="alt2" style="margin: 0px; padding: 0px; border: 0px inset;">
<div style="display: none">
<div class="separator" style="clear: both; text-align: center;">
your object
</div>
</div>
</div>
<div class="smallfont" style="margin-bottom:2px">
<input type="button" value="show" style="width:60px;font-size:10px;margin:0px;padding:0px;" 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'; }"/>
</div>
<div class="alt2" style="margin: 0px; padding: 0px; border: 0px inset;">
<div style="display: none">
<div class="separator" style="clear: both; text-align: center;">
your object
</div>
</div>
</div>