Followers

TUTORIAL : BUAT BUTTON SPOILER CUTE

Korang nak tak buat button spoiler ?
what ? tak tahu macam mana ? erm .. korang tengok gambar kat bawah..

nampak tak ..yang background unggu dan putih tu .
ha ..tu la button spoiler .hahaa ..

sapa nak buat boleh mula ..

dashboard - design - add gadget - html/javascript

copy code di bawah dan masukkan ke dalam html/javascript korang tu ok ..


<center><div id="spoiler"><div><input value="NAMA BUTTON KORANG" style="width:88px ;font-size:12px;background-image: url(URL BACKGROUND);-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-color:transparent; background-repeat:repeat; margin: 0px;border-width:0px; padding:3px; width:90%"><center><center>URL WIDGET / AYAT KORANG</center></center></div></div></div></center>

Dah siap save ..
dan jeng jeng jeng .. LIHAT LAH ..^^

SELAMAT MENCUBA

No comments: