Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<!--Вставить скрипт между <head></head>-->
<SCRIPT language=JavaScript >
function SetBG(color)
{
var elm=document.getElementById('bkg');
elm.style.backgroundColor = color;
}
</SCRIPT>
<!--Вставить скрипт между <head></head>-->
<!--А это куда тебе нужно-->
<table width="100%" border=0 cellspacing="0" cellpadding="0" >
<tr>
<td width="100%" valign=middle align="center" id="bkg" style="padding-top:35px;">
<table cellpadding=8 cellspacing=0 border=0>
<tr>
<td><img src="http://www.nulled.ws/image.php?u=17366&dateline=1177622612" border="0" alt="" title=""></td>
</tr>
<tr>
<td >
<table align=left cellpadding=0 cellspacing=0 border=0>
<tr>
<td bgcolor="#68C455" ><a href="javascript:void(0);" onClick="SetBG('#68C455')"><img src="images/spacer.gif" width=16 height=16 border=0></a></td>
<td bgcolor="#E5E5E5" ><a href="javascript:void(0);" onClick="SetBG('#e5e5e5')"><img src="images/spacer.gif" width=16 height=16 border=0></a></td>
<td bgcolor="#BE9826" ><a href="javascript:void(0);" onClick="SetBG('#BE9826')"><img src="images/spacer.gif" width=16 height=16 border=0></a></td>
<td bgcolor="#B3B3B3" ><a href="javascript:void(0);" onClick="SetBG('#b3b3b3')"><img src="images/spacer.gif" width=16 height=16 border=0></a></td>
<td bgcolor="#306A82" ><a href="javascript:void(0);" onClick="SetBG('#306A82')"><img src="images/spacer.gif" width=16 height=16 border=0></a></td>
<td bgcolor="#FF0000" ><a href="javascript:void(0);" onClick="SetBG('#FF0000')"><img src="images/spacer.gif" width=16 height=16 border=0></a></td>
</tr>
</table>
<!--А это куда тебе нужно-->
пробую, не получяется, что не так?
PHP:<td id="trg" width="80%" class="picselectmain" align="center" ><img name="main_ad_image" src="<?=SITE_PATH;?>thumbnail.php?pic=<?=$item_details['ad_image'][0];?>&w=500&sq=Y&b=Y" border="0" alt="<?=$item_details['name'];?>"></td> <script language="javascript"> <!-- function SetBG(color){this.document.getElementById('trg').bgColor = color;} //--> </script> <a href="javascript:void(0);" onclick="SetBG('#000000')">Buton</a>