Ребята помогите.
Есть меню код которого приведен ниже. Нужно чтобы при нажатии на ссылку в меню менялся фон в этой ячейке :
Код:
<td height="24" colspan="10" class="selected_top_box_red2_1">
+ фоновое изображение в этой ячейке :
Код:
<td height="24" colspan="10" background="images/values/red_value.GIF" class="selected_top_box_red2_2">
</td>
Вот полный код менюшки:
Код:
<td width="15%" height="15%" rowspan="2" valign="top" class="left_white_box_for_logo">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/logo.gif[/img]'; ?>
Art Anderson
Associates </td>
<td
onmouseover="bgColor='#ff0000'" onClick="window.location='index.php'"
style="cursor:hand"
onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF"
width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/reb.gif[/img]'; ?>
<br \><br \>
Our company
</a></td>
<td onmouseover="bgColor='#ff7f00'" onClick="window.location='en/en/stakeholders/index.php'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="en/en/stakeholders/index.php">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/orange.gif[/img]'; ?>
<br \><br \>
Stakeholders
</a></td>
<td onmouseover="bgColor='#ffd400'" onClick="window.location='page1.html'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php?option=com_content&task=section&id=5&Itemid=27">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/yellow.gif[/img]'; ?>
<br \><br \>
Services
</a></td>
<td onmouseover="bgColor='#00ff00'" onClick="window.location='page1.html'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php?option=com_jportfolio&Itemid=29">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/green.gif[/img]'; ?>
<br \><br \>
Portfolio
</a></td>
<td onmouseover="bgColor='#339999'" onClick="window.location='page1.html'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php?option=com_kb&Itemid=30">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/aqua.gif[/img]'; ?>
<br \><br \>
Knowledge
</a></td>
<td onmouseover="bgColor='#0000ff'" onClick="window.location='page1.html'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php?option=com_content&task=section&id=6&Itemid=31">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/blue.gif[/img]'; ?>
<br \><br \>
Join the Crew
</a></td>
<td onmouseover="bgColor='#9900ff'" onClick="window.location='page1.html'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php?option=com_content&task=section&id=6&Itemid=32">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/violet.gif[/img]'; ?>
<br \><br \>
Inter-action
</a></td>
<td onmouseover="bgColor='#C400C4'" onClick="window.location='page1.html'" style="cursor:hand" onmouseout="bgColor='#FFFFFF'" bgcolor="#FFFFFF" width="10%" height="113" valign="middle" align="center" class="td-refresh">
<a href="index.php?option=com_thopper&Itemid=33">
<?php echo '[img]' .$mosConfig_live_site. '/templates/' .$GLOBALS['cur_template']. '/images/buttons/pink.gif[/img]'; ?>
<br \><br \>
Client portal
</a></td>
<td width="5%" rowspan="2" class="right_white">
</td>
</tr>
<tr>
<td height="24" colspan="10" class="selected_top_box_red2_1">
<a href="/_files/vision/">
</a>
</td>
</tr>
<tr>
<td height="24" colspan="10" background="images/values/red_value.GIF" class="selected_top_box_red2_2">
</td>
Надеюсь на Вашу помощь!