គេសម្រាប់ការកំណត់ហេតុបណ្ដាញរបស់អ្នករបស់ខ្លួនមានភាពងាយស្រួលសម្រាប់អ្នកដើម្បីផ្លាស់
ប្តូរពណ៌ផ្ទៃខាងក្រោយរបស់អ្នកនឹងអនុញ្ញាតឱ្យអ្នកទស្សនារបស់យើងក្នុងការជ្រើសរើសយក
ពណ៌ផ្ទៃខាងក្រោយលើកំណត់ហេតុបណ្ដាញរបស់។
- ដើម្បីបន្ថែមធាតុក្រាហ្វិកនេះទៅកំណត់ហេតុបណ្ដាញរបស់អ្នកៈ
ជំហានទី 2 Layout >> Add a Gadget>> HTML/JavaScript
ជំហានទី 3 ឥឡូវនេះចម្លងកូដខាងក្រោមហើយបិទភ្ជាប់វានៅក្នុង HTML/JavaScript
<div class="widget-content">
<center><b>Choose Your Favorite Color</b></center>
<br/>
<script type="text/javascript">
function bgChange(bg)
{
document.body.style.background=bg;
}
</script>
<table border="1" width="100%" height="20">
<tbody><tr>
<td onclick="bgChange('#8B008B')" bgcolor="#8B008B">
</td>
<td onclick="bgChange('#9400D3')" bgcolor="#9400D3">
</td>
<td onclick="bgChange('#008080')" bgcolor="#008080">
</td>
<td onclick="bgChange('#808080')" bgcolor="#808080">
</td>
<td onclick="bgChange('#CD853F')" bgcolor="#CD853F">
</td>
<td onclick="bgChange('#2F4F4F')" bgcolor="#2F4F4F">
</td>
<td onclick="bgChange('#DC143C')" bgcolor="#DC143C">
</td>
<td onclick="bgChange('#4B0082')" bgcolor="#4B0082">
</td>
<td onclick="bgChange('#A52A2A')" bgcolor="#A52A2A">
</td>
<td onclick="bgChange('#000000')" bgcolor="#000000">
</td>
<td onclick="bgChange('#66FF00')" bgcolor="#44FF00">
</td>
<td onclick="bgChange('#FFFF00')" bgcolor="#FFFF00">
</td>
</tr></tbody></table>
</div>
<center><b>Choose Your Favorite Color</b></center>
<br/>
<script type="text/javascript">
function bgChange(bg)
{
document.body.style.background=bg;
}
</script>
<table border="1" width="100%" height="20">
<tbody><tr>
<td onclick="bgChange('#8B008B')" bgcolor="#8B008B">
</td>
<td onclick="bgChange('#9400D3')" bgcolor="#9400D3">
</td>
<td onclick="bgChange('#008080')" bgcolor="#008080">
</td>
<td onclick="bgChange('#808080')" bgcolor="#808080">
</td>
<td onclick="bgChange('#CD853F')" bgcolor="#CD853F">
</td>
<td onclick="bgChange('#2F4F4F')" bgcolor="#2F4F4F">
</td>
<td onclick="bgChange('#DC143C')" bgcolor="#DC143C">
</td>
<td onclick="bgChange('#4B0082')" bgcolor="#4B0082">
</td>
<td onclick="bgChange('#A52A2A')" bgcolor="#A52A2A">
</td>
<td onclick="bgChange('#000000')" bgcolor="#000000">
</td>
<td onclick="bgChange('#66FF00')" bgcolor="#44FF00">
</td>
<td onclick="bgChange('#FFFF00')" bgcolor="#FFFF00">
</td>
</tr></tbody></table>
</div>
ជំហានទី 4 អូសប៊ូតុង Save HTML/JavaScript។