tips merubah warna background blog apabila di klik.
mula mula login ke akun Blogger sobat.
Pergi ke Dasbor >> Rancangan >>Tambah element Html/Javascript
Masukkan code di bawah ini :
<script type="text/javascript">function bgChange(bg){document.body.style.background=bg;}</script><br />
<table width="100%"><tr> <td onclick="bgChange('black')" bgcolor="black"> </td> <td onclick="bgChange('#6633FF')" bgcolor="#6633FF"> </td> <td onclick="bgChange('#FF3366')" bgcolor="#FF3366"> </td> <td onclick="bgChange('#CAFF7A')" bgcolor="#CAFF7A"> </td> <td onclick="bgChange('#fff')" bgcolor="#fff"> </td> <td onclick="bgChange('#0f0')" bgcolor="#0f0"> </td> <td onclick="bgChange('#003333')" bgcolor="#003333"> </td> <td onclick="bgChange('#515151')" bgcolor="#515151"> </td> <td onclick="bgChange('#331A00')" bgcolor="#331A00"> </td> </tr>
</table>
<table width="100%"><tr> <td onclick="bgChange('black')" bgcolor="black"> </td> <td onclick="bgChange('#6633FF')" bgcolor="#6633FF"> </td> <td onclick="bgChange('#FF3366')" bgcolor="#FF3366"> </td> <td onclick="bgChange('#CAFF7A')" bgcolor="#CAFF7A"> </td> <td onclick="bgChange('#fff')" bgcolor="#fff"> </td> <td onclick="bgChange('#0f0')" bgcolor="#0f0"> </td> <td onclick="bgChange('#003333')" bgcolor="#003333"> </td> <td onclick="bgChange('#515151')" bgcolor="#515151"> </td> <td onclick="bgChange('#331A00')" bgcolor="#331A00"> </td> </tr>
</table>
Simpan dan lihat hasilnya.
0 komentar:
Speak up your mind
Tell us what you're thinking... !