Script Kode HTML membuat tombol pengganti warna background blog adalah seperti dibawah ini :
1. Klik "Layout" (Tata Letak)
2. Klik "Add Gadget"
3. Pilih "Javascript/HTML"
4. Copy dan Paste kode berikut ini:
5. save.
<script type='text/javascript'>
function bgChange(bg)
{document.body.style.background=bg;}
</script>
<table border="1" height="20" style="width: 180px;">
<tr>
<td onclick="bgChange('#ffffff')" bgcolor="#ffffff"></td>
<td onclick="bgChange('#eeeeee')" bgcolor="#eeeeee"></td>
<td onclick="bgChange('#cfe2f3')" bgcolor="#cfe2f3"></td>
<td onclick="bgChange('#ebccda')" bgcolor="#ebccda"></td>
<td onclick="bgChange('#b3f2b3')" bgcolor="#b3f2b3"></td>
<td onclick="bgChange('#f4f45b')" bgcolor="#f4f45b"></td>
<td onclick="bgChange('#ccccee')" bgcolor="#ccccee"></td>
<td onclick="bgChange('#c2f0ac')" bgcolor="#c2f0ac"></td>
<td onclick="bgChange('#f87ef8')" bgcolor="#f87ef8"></td>
<td onclick="bgChange('#999999')" bgcolor="#999999"></td>
</tr>
</table>
No comments:
Post a Comment