Tutorial : Spoiler Button

12:11:00 PM

Assalamualaikum :)


http://25.media.tumblr.com/388f1fbacdaaf8750acb102acb63a454/tumblr_mvpk1armhI1sv98gio1_400.gif

Live Preview :


1. Dashboard - Design - Add a gadget - Html/JavaScript
2. Copy code di bawah ni and paste dalam ruangan html tadi.

<center><div id=spoiler"><div><input value=" Text Here " style="width:88px ;font-size:12px;background-image: url( URL IMAGE );-moz-border-radius: 10px; border-radius: 10px;margin:13px;padding:0px;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-repeat:repeat; margin: 0px;border-width:0px; padding:3px; width:90%">
<center><center>
Your text goes here :3
</center></center></div></div></div></center>

3. Save !

Nota kaki 
ABC : Tulis je apa yang patut.
ABC : Url background.
ABC : Text atau code.

Assalamualaikum
Blog Author : FafaKyraa

You Might Also Like

0 Commentor(s)

Assalamualaikum
Feel free to put your thoughts here XD