Langsung saja langkah2nya
1. Pilih Rancangan-Elemen laman-Tambah Gadget-HTML/Java Script
2. Copy/Paste kode di bawah ini.
<div>
<div style="margin-bottom: 2px;">
<input 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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" style="font-size: 10px; margin: 0px; padding: 0px; width: 60px;" type="button" value="Show" /></div>
<div style="border: 1px inset; margin: 0px; padding: 6px;">
<div style="display: none;">
MASUKKAN TEXT/LINK anda
</div>
</div>
</div>
3. Ganti tulisan warna merah dengan text/link anda...
4. Simpan
0 comments:
Speak up your mind
Tell us what you're thinking... !