Show Hide Spoiler


Assalamualaikum, morning all. Fyqa baru ja sampai rumah. Tadi teman mama pi alignment tayar kereta. Now balik nak buat satuu tutorial uke. Lets start. :face17:

1. Dashboard > Design > Add A Gadget > Html/javascript.

2. Copy kod dekat bawah nih dalam Html/javascript tadi uke.

<center><div id="spoiler" style="display:none">
Isi yang disembunyikan
</div>
<button title="Click to show/hide content" type="button" onclick="if(document.getElementById('spoiler') .style.display=='none') {document.getElementById('spoiler') .style.display=''}else{document.getElementById('spoiler') .style.display='none'}">Show | Hide</button><center></center></center>

3. Masukkan isi yang disembunyikan.

4. Boleh tukar perkataan show | hide.

5. Save !


Lastly , doakan Fyqa SPM 11A+ (!)
Comments
0 Comments

0 Doakan Fyqa Kurus :):