// s t a r r y t h e t i c
ENTRY ABOUT RANGKUMAN STUFFS INSTAGRAM TWITTER NEWER OLDER +FOLLOW DASH

SHOW & HIDE BUTTON
| PREVIEW |
  • Dashboard >>> Tata Letak >>> Add A Gadget >>> HTML/Javascript
  • Copy kode ini :

<center><div id="spoiler"><div><input value="Click Me" style="width:150px ;font-size:12px; font-family: delius; background-image: url(URL BG);-moz-border-radius: 7px; border-radius: 7px;margin:13px;padding:0px;border-style: 2px solid pink;" 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; text-align: left; background-color:transparent; font-family: delius; font-size:11px;background-repeat:repeat; border-radius:10px; border: 2px dashed hotpink; background:url(URL BG); margin: 0px; border-width:2px;padding:3px; width:250px">
Peek a boo!</div></div></div><br />
</center>
  • Paste
  • Save


Ket:
-- : judul/tulisan pada tombol
-- : URL background
-- : text
-- : warna
-- : font

Labels: ,


Written by me at 1/31/2015 | 0 Star{s}

Post a Comment