Show or Hide Button / Spoiler
Assalammualaikum + annyeong, chingu :)
\Bismillahirrahmanirrahim/ Hello all ! Okayy, hari neh Aleeya nak sambung buad tutorials Show or Hide Button / Spoiler. So, jom buad tutorials ini ;)
1. Dashboard -> Design -> Page Elements -> Add A Gadget -> HTML/Java Script2. Tekan CTRL+C then copy code bawah neh :
<center><div id="spoiler"><div><input 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!'; }" value="Pamirkan" style="width:200px;font-size:12px;background-image:url(URL GAMBAR);-moz-border-radius: 25px 10px / 10px 25px; border-radius: 25px 10px / 10px 25px;margin:10px;padding:0px;border-style: 2px solid #FFFFFF;" type="button" /> <div id="show" style="display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-width:0px; padding:3px; width:98%"> MASUKKAN CODE JAVASCRIPT/GAMBAR/TEXT ANDA</div> <div id="hide"></div>
3. Lepas dah copy, paste kan code tadi dkt HTML/Java Script4. Save !
- Yang Aleeya warnekan BIRU, sila tukar dgn code color yang korang nak.
- Yang Aleeya warnekan MERAH, sila tukar dgn url gambar yang korang nak.
- Yang Aleeya warnekan HIJAU, sila tukar ikut kesesuaian korang.
- Yang Aleeya warnekan KUNING, sila masukkan code code korang atau text korang.
Older Post | Newer Post