Hallo erstmal!!!
Ich hab noch ein kleines Problem!!!
Ich hab meinen Code soweit umgeschrieben, dass das Script meiner Meinung nach, ähnlich mit deinem ist! (siehe: http://www.styleassistant.de/tips/beispiel15c.htm)
Doch meine erstes Bild (das sich ja schon im "onClick-Zustand" befindet) bleibt bestehen, und wechselt nicht nach dem onClick, auf ein anderes Bild, auf das Bild von der function Out! Bei allen anderen Bilder funktioniert ja alles.
Kann da bitte nochmal einer, oder du Thomas, gucken??
Die Bilder hab ich ja jetzt online gestellt!!!
Merci! :-) Ein schönes Wochenende..
Greets, Nane
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Neue Seite 2</title>
<script type="text/javascript">
function ZweiFrames(URI1,F1,URI2,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.location.href = URI1;
Frame2.location.href = URI2;
}
var img;
var img_alt, img_akt="GIF_962";
function Over(img)
{
if (img!=img_akt)
{
document.images[img].src = eval(img + '_over.src');
}
}
function Out(img)
{
if (img!=img_akt)
{
document.images[img].src = eval(img + '_out.src');
}
if (img==img_akt)
{
document.images[img].src = eval(img + '_on.src');
}
}
function Click(img)
{
img_alt=img_akt;
img_akt=img;
document.images[img_alt].src = eval(img_alt + '_out.src');
document.images[img].src = eval(img + '_on.src');
}
</script>
</head>
<body topmargin="0" marginwidth="0" marginheight="0" leftmargin="0" background="./templates/Movement/img/333F65/hintergrund.gif">
<TABLE width="280" cellspacing="0" cellpadding="0" border="0"> <TR> <TD>
<a onmouseover="Over('GIF_962');" onmouseout="Out('GIF_962');" onclick="Click('GIF_962');" onFocus="blur();" target="Hauptframe" href="home.htm"><IMG width="240" src="./templates/Movement/img/navi/Movement_962_h.gif" name="GIF_962" height="32" border="0" alt="Home - News"></a></TD> </TR>
<TR> <TD>
<a onmouseover="Over('GIF_9095');" onmouseout="Out('GIF_9095');" onclick="Click('GIF_9095');" onFocus="blur();" href="javascript:ZweiFrames('navi_about.htm','Inhalt','about.htm','Hauptframe')"><IMG width="240" src="./templates/Movement/img/navi/Movement_9095_n.gif" name="GIF_9095" height="32" border="0" alt="About Me"></a></TD> </TR> <TR> <TD>
<a onmouseover="Over('GIF_11596');" onmouseout="Out('GIF_11596');" onclick="Click('GIF_11596');" onFocus="blur();" target="Hauptframe" href="11595.html"><IMG width="240" src="./templates/Movement/img/navi/Movement_11596_n.gif" name="GIF_11596" height="32" border="0" alt="My Shop"></a></TD> </TR> <TR> <TD>
<a onmouseover="Over('GIF_10660');" onmouseout="Out('GIF_10660');" onclick="Click('GIF_10660');" onFocus="blur();" href="javascript:ZweiFrames('navi_studies.htm','Inhalt','studies.htm','Hauptframe')"><IMG width="240" src="./templates/Movement/img/navi/Movement_10660_n.gif" name="GIF_10660" height="32" border="0" alt="Studies"></a></TD> </TR> <TR> <TD>
<a onmouseover="Over('GIF_14438');" onmouseout="Out('GIF_14438');" onclick="Click('GIF_14438');" onFocus="blur();" target="Hauptframe" href="14437.html"><IMG width="240" src="./templates/Movement/img/navi/Movement_14438_n.gif" name="GIF_14438" height="32" border="0" alt="My Special Features"></a></TD> </TR> <TR> <TD>
<a onmouseover="Over('GIF_10708');" onmouseout="Out('GIF_10708');" onclick="Click('GIF_10708');" onFocus="blur();" target="Hauptframe" href="10707.html"><IMG width="240" src="./templates/Movement/img/navi/Movement_10708_n.gif" name="GIF_10708" height="32" border="0" alt="Links"></a></TD> </TR> <TR> <TD>
<a onmouseover="Over('GIF_12021');" onmouseout="Out('GIF_12021');" onclick="Click('GIF_12021');" onFocus="blur();" target="Hauptframe" href="12020.html"><IMG width="240" src="./templates/Movement/img/navi/Movement_12021_n.gif" name="GIF_12021" height="32" border="0" alt="Contact"></a></TD> </TR> <TR> <TD>
<a onmouseover="Over('GIF_11820');" onmouseout="Out('GIF_11820');" onclick="Click('GIF_11820');" onFocus="blur();" target="Hauptframe" href="11819.html"><IMG width="240" src="./templates/Movement/img/navi/Movement_11820_n.gif" name="GIF_11820" height="32" border="0" alt="Visitor's Book"></a></TD> </TR> <TR> <TD>
<IMG width="240" src="./templates/Movement/img/333F65/unten1.gif" height="48"></TD> </TR></TABLE>
<SCRIPT>
for(var i=0; i<document.images.length; i++){
if (document.images[i].name.indexOf("GIF_") == 0){
eval(document.images[i].name + "_over = new Image()");
eval(document.images[i].name + "_out = new Image()");
eval(document.images[i].name + "_on = new Image()");
var thenormsrc = document.images[i].src;
var fileext = thenormsrc.substring(thenormsrc.length-4);
eval(document.images[i].name + "_over.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_m" + fileext + "'");
eval(document.images[i].name + "_on.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_h" + fileext + "'");
eval(document.images[i].name + "_out.src = '" + thenormsrc + "'");
}
}
</SCRIPT>
</body>
</html>