10 January 2014

Tutorial: Button Spoiler New Version!

Annyeong korunk~
Tutor again? Yeah~ I love to blog!

Button Spoiler? Ape tuh? Tak nah dengar pun?

Classmate Naa adelah tanye...tapi, dorg xder blog x'D
*Hope hang baca entry ni nah xD

Nak tunjuk jugak kew? Ye? Haiiyaa~Okelah -v-

*b4 tekan*

*After tekan*

Dah? Dah paham?

Okeyh, nak belajar tak? 

If nak...tengok tutor yg bosan nih sampai habies =D!

Cara 1:

1. Dashboard->Layout
2.  Add a gadget->HTML Javascript
3. CoPas kod ni dalam kotak g kuar tu
4. Yang TITLE tu jangan isi!

<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> 
1: Title button
2: URL Background 
3: Ayat or pict yg nak diletakkan...if nak ltk pict, follow tutor ni-> KLIK SINI!

5. Save!
6. Preview! Jadik :)?

Cara 2:
1. Layout->Pilih sidebar yg dah ade
2. Tak paham? Rujuk pict bawah :)


3. Klik button tuh...
4. Pastu kuar koding-2 kan?
5. Customize koding yg kat Cara 1 tuh...
6. Paste (atas/bawah jerr) kat kotak HTML yg kuar tu :)
7. Save! Preview blog!

Tulah tutor simple arini :) Hope sukew and paham....=D

If x paham...komen :) Jangan malu-2 x3







No comments:

Post a Comment