Button Show - Hide Spoiler New Version (RULES)

Penulis : Nurul Fatihah Shahronizam Masa : 10:36 Komen : 2 Tag :

 Kali ni Nurul nak buat tutorial RULES macam dekat atas shoutbox Nurul tuu . Alar .. Macam bila klik je button tuh , akan keluar ayat kita . Contoh macam ni :


Sebelum Klik :


Selepas Klik :



Okey , Nak jugak belajar buat benda Alar nih ? Boleh .. Jom Nurul ajarkan erk ^_^v


1. Log in > Dashboard > Design > Add a Gadget > Html/JavaScript

2. Korang copy kod ini :

<center><div id="spoiler"><div><input value="Tajuk apa-apa" style="width:88px ;font-size:12px;background-image: url(URL BACKGROUND UNTUK BUTTON);-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>Ayat korang apa-apa</center></center></div></div></div></center> 

3. Paste kan di bahagian Html/Javacsript tu :)

Warna Ungu : Tulis perkataan sebelum klik button . (Contoh : Rules)

Warna Biru : Paste kan URL background . ( Boleh dapatkan DI SINI ) - Copy direct link :) 

Warna Merah : Tulis lah apa - apa ayat korang selepas button di-klik . Okeyy ?


4. Dah ubah semua ? Okeyy , sekarang SAVE ! :)

5. Now , cuba tengok dekat blog korang . Menjadi takk ? =.=


=Selamat Mencuba= peacee ^_^v





A true muslimah : never forget that Islam, which encourages her to look attractive under the permitted limits, is also the religion that's warns her against extravagance ^_^

2 comments: