Manu: OnMouseover Frame neuladen

Beitrag lesen

hi,

onmouseover="parent.frames[#].location.href='...';" (neue adresse ins Frame laden)

oder

onmouseover="parent.frames[#].location.reload();" (neuladen)

parent.frames[#] stellt das Frame dar. Das musst du dann natürlich noch richtig referenzieren!

christian

Hi christian,

das ding läuft ja echt super, nur leider kann es nur eine Funktion ausführen! Ich hab da schon ein Bildwechsel drin, und beides geht nicht.
Aber sicher gibt es da auch noch eine Möglichkeit, oder?

So hab ich das gemacht.

********** so gehts, ohne Bildwechsel*********
<div style="position:absolute; top:10px; left:347px;"><a href="../fashion/start.htm"
onmouseover="parent.links.location.href='links1.htm';">
<img src="../b/Fashion1.gif" width="57" height="16" border="0"></div></a>

*********aber wenn ich es hier einbaue gehts nicht*********
<div style="position:absolute; top:10px; left:407px;"><a href="../people/start.htm"
"target=_parent onMouseOver="Bildwechsel(3,Highlight2)" onMouseOut="Bildwechsel(3,Normal2)">
<img src="../b/People1.gif" width="57" height="16" border="0"></div></a>

<div style="position:absolute; top:10px; left:467px;"><a href="../editorial/start.htm"
"target=_parent onMouseOver="Bildwechsel(4,Highlight3)" onMouseOut="Bildwechsel(4,Normal3)">
<img src="../b/Editorial1.gif" width="57" height="16" border="0"></div></a>

<script type="text/javascript">
<!--

Normal1 = new Image();
Normal1.src = "../b/Fashion2.gif";
Highlight1 = new Image();
Highlight1.src = "../b/Fashion2.gif";

Normal2 = new Image();
Normal2.src = "../b/People1.gif";
Highlight2 = new Image();
Highlight2.src = "../b/People2.gif";

Normal3 = new Image();
Normal3.src = "../b/Editorial1.gif";
Highlight3 = new Image();
Highlight3.src = "../b/Editorial2.gif";

function Bildwechsel(Bildnr,Bildobjekt) {
 window.document.images[Bildnr].src = Bildobjekt.src;
}
//-->
</script>