Thomas J.: funktion bildwechsel

Beitrag lesen

function Bildwechsel(bildbezeichnung,bildobjekt)
  {
   window.document.bildbezeichnung.src = bildobjekt.src;
   }

function Bildwechsel(bildbezeichnung,bildobjekt)
{
window.document.images[bildbezeichnung].src = bildobjekt.src;
}

<A HREF="" ONMOUSEOVER="Bildwechsel(pic_00,mouseover_00);" ONMOUSEOUT="Bildwechsel(pic_00,mouseout_00)">
<img src="images/buttons/00_d.gif" width="163" height="22" alt="" border="0" name="pic_00"></a>

<A HREF="" ONMOUSEOVER="Bildwechsel('pic_00',mouseover_00)" ONMOUSEOUT="Bildwechsel('pic_00',mouseout_00)">
<img src="images/buttons/00_d.gif" width="163" height="22" alt="" border="0" name="pic_00"></a>

Thomas J.