Tutorial : Spoiler button

Assalammualaikum and Annyeonghaseyo
Large
Okay hari ni nak ajar korang buat button hide spoiler. Cuba tekan spoiler button kat bawah ni. Jaejin kot~~
Nak belajar buat tak? Jom buat ^_^


1. Pergi dashboard >Layout > Add Gadget > Add HTML / Javascript 
2. Copy code bawah ni 

<center><div id="spoiler"><div><input value="Tajuk Butang" style="width:88px ;font-size:12px;background-image: url(Background korang);-moz-border-radius: 0px; border-radius: 0px;margin:10px;padding:1px;border-style: 2px solid #ff9fcc;" type="button" onclick="if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[&#39;show&#39;].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[&#39;show&#39;].style.display = &#39;&#39;; this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[&#39;hide&#39;].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;Hide Spoiler!&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[&#39;show&#39;].style.display = &#39;none&#39;; this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[&#39;hide&#39;].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;Show Spoiler!&#39;; }" />
<div id="show" style="display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-width:0px; padding:3px; width:90%">
<center><center>Isi yang korang nak letak :)</center></center></div></div></div></center>

3. Paste di kotak HTML/ Javascript
4. Save!!

Petunjuk

Merah : Tajuk Button korang (contoh : Lee Jaejin ❤)
Oren : Background korang
Biru : Apa yang korang nak letak (contoh : text, gambar, code follower or etc)

Kalau tak jadi bagi tahu tau :) Thanks :)
credit : jombinabelog

2 comments:

NinaAz said...

comelnya pic tuuuuu

Syaaa said...

amik daripada wehearit