hjælp til en desperat mouse over mand
Hejsa jeg har fundet dette script som jeg har fundet på http://www.rcmart.com/catalog/default.php?cPath=595og jeg har fint mouse over funtionen til at virke men ikke at den beholder fokus på det grønne billede når man har klikket på den..
Her er scriptet....
<SCRIPT LANGUAGE = "JavaScript">
{
button00on = new Image();
button00on.src = "images/but_off_home.gif";
button01on = new Image();
button01on.src = "images/but_off_micro_rc.gif";
button02on = new Image();
button02on.src = "images/but_off_rc_cars.gif";
button03on = new Image();
button03on.src = "images/but_off_accessory.gif";
button04on = new Image();
button04on.src = "images/but_off_air_n_boat.gif";
button05on = new Image();
button05on.src = "images/but_off_toys.gif";
button06on = new Image();
button06on.src = "images/but_off_on_sales.gif";
button07on = new Image();
button07on.src = "images/but_off_others.gif";
button08on = new Image();
button08on.src = "images/but_off_parts.gif";
button00off = new Image();
button00off.src = "images/but_home.gif";
button01off = new Image();
button01off.src = "images/but_micro_rc.gif";
button02off = new Image();
button02off.src = "images/but_rc_cars.gif";
button03off = new Image();
button03off.src = "images/but_accessory.gif";
button04off = new Image();
button04off.src = "images/but_air_n_boat.gif";
button05off = new Image();
button05off.src = "images/but_toys.gif";
button06off = new Image();
button06off.src = "images/but_on_sales.gif";
button07off = new Image();
button07off.src = "images/but_others.gif";
button08off = new Image();
button08off.src = "images/but_parts.gif";
}
function buttonOn(buttonName)
{
document[buttonName].src = eval(buttonName + "on.src");
}
function buttonOff(buttonName)
{
document[buttonName].src = eval(buttonName + "off.src");
}
</SCRIPT>
<center>
<Table border="0" cellspacing="0" cellpadding="0" bgcolor = #ffffff>
<tr class="headerNavigation2" height="20" bgcolor = #ffffff>
<td class="headerNavigation2" valign="bottom" bgcolor = #ffffff>
<A href="index.php"><IMG src="images/but_off_home.gif" alt="Home" border="0"></a> </td>
<td class="headerNavigation2" valign="bottom">
<A href="index.php?cPath=1" OnMouseOver="buttonOn('button01')" OnMouseOut="buttonOff('button01')"><IMG src="images/but_micro_rc.gif" name="button01" alt="Mini RC Cars" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="index.php?cPath=1" OnMouseOver="buttonOn('button02')" OnMouseOut="buttonOff('button02')"><IMG src="images/but_rc_cars.gif" name="button02" alt="Car Kits" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="index.php?cPath=2" OnMouseOver="buttonOn('button08')" OnMouseOut="buttonOff('button08')"><IMG src="images/but_parts.gif" name="button08" alt="Parts" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="index.php?cpath=1" OnMouseOver="buttonOn('button03')" OnMouseOut="buttonOff('button03')"><IMG src="images/but_accessory.gif" name="button03" alt="Accessories and Tools" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="default.php?cPath=422" OnMouseOver="buttonOn('button04')" OnMouseOut="buttonOff('button04')"><IMG src="images/but_air_n_boat.gif" name="button04" alt="Plane, Helicopter & Boat" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="default.php?cPath=318" OnMouseOver="buttonOn('button05')" OnMouseOut="buttonOff('button05')"><IMG src="images/but_toys.gif" name="button05" alt="RC related toys" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="specials.php" OnMouseOver="buttonOn('button06')" OnMouseOut="buttonOff('button06')"><IMG src="images/but_on_sales.gif" name="button06" alt="On Sale Items" border="0"></A>
</td>
<td class="headerNavigation2" valign="bottom">
<A href="default.php?cPath=423" OnMouseOver="buttonOn('button07')" OnMouseOut="buttonOff('button07')"><IMG src="images/but_others.gif" name="button07" alt="Others" border="0"></A>
</td>
</tr>
</table>
</center>
Jeg kan ikke lige se hvad det er jeg har gjort galt eller mangler at gøre....
Mvh
LArs Ravn
