Cara Membuat Tombol Spoiler Versi 2
8/29/11 • 29.8.11 • 0 Commenter [s]
Dashboard >> Design >> Add Gadget >> HTML/Javascript
Copy dan paste kode dibawah ini di kotak HTML/Javascript kamu :
<center><div id="spoiler"><div><input value="Buka/Tutup" style="width:200px;font-size:12px;background-image: url(URL Background);-moz-border-radius: 5px; border-radius: 5px;margin:13px;padding:0px;border-style: 2px solid #ff9fcc;" type="button" 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!'; }" /> <div id="show" style="display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-width:0px; padding:3px; width:90%"> <center>Kata-Kata kamu/kode html</center> </div> Perhatian Biru Ganti dengan URL Background Kamu Pink ganti dengan kata-kata kamu (kata-katamu/kode html yg ada dalam kotak spoiler) Sumber untuk URL Background klik DISINI Labels: tips dan trik blogger |
Welcome!
Chatbox
Archive; Ads |