Korang tahu ke apa tu
Button Show-Hide Spoiler?
Kalau taktau cuba tengok pic kat bawah ni haa
Kalau korang try tekan 'Click sini' dia akan jadi mcm pic kat bawah ni haaa :)
1. Log in > Dashboard > > Layout > Add Gadget > HTML/Java Script
2. Copy dan paste code kat bawah ni
<div><div style="margin: 5px;"><div style="margin-bottom: 2px;" class="bigfont"><input style="margin: 0px; padding: 0px; width: 95px; " value="Klik Sini" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Tutup'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Klik Sini'; }" type="button"/></div><div style="border: 0px inset ; margin: 0px; padding: 6px;" class="alt2"><div style="display: none;">Masukkan Code JavaScript/Gambar/Text Di sini</div></div></div></div>
3. Save.
No comments:
Post a Comment