rasputin
Lounge-Member
wie muss man den script erweitern, dass das bild beim onclick bestehen bleibt und erst beim nächsten onclick zurückgesetzt wird?
<script>
Normal1 = new Image();
Normal1.src = "img/news_out.gif";
Highlight1 = new Image();
Highlight1.src = "img/news_over.gif";
function Wechsel(index,image)
{
window.document.images[index].src = image.src;
}
</script>
<A HREF="xyz.htm" onMouseover="Wechsel(0,Highlight1)" onMouseout="Wechsel(0,Normal1)">
<script>
Normal1 = new Image();
Normal1.src = "img/news_out.gif";
Highlight1 = new Image();
Highlight1.src = "img/news_over.gif";
function Wechsel(index,image)
{
window.document.images[index].src = image.src;
}
</script>
<A HREF="xyz.htm" onMouseover="Wechsel(0,Highlight1)" onMouseout="Wechsel(0,Normal1)">