Moin moin,
folgendes Problem hab ich jetzt. Der Bild wechsel und so funktioniert alles perfekt nur, das bild wird mir im IFrame immer links angezeigt obwohl ich dem frame sage positionirung mitte. kann mir da jemand helfen, danke schon mal.
QT:
folgendes Problem hab ich jetzt. Der Bild wechsel und so funktioniert alles perfekt nur, das bild wird mir im IFrame immer links angezeigt obwohl ich dem frame sage positionirung mitte. kann mir da jemand helfen, danke schon mal.
QT:
Code:
<html>
<head>
<title>Titel</title>
</head>
<body bgcolor="EEEEEE">
<table border=0 height="100%" width="100%">
<tr height=10 algin="center">
<td width="40%" align="right">
<script type="Text/Javascript">
<!--
var a = 0;
var b = 0;
function wechsel(next)
{
if(next)
{
a++;
b++;
}
else
{
a--;
b--;
}
if (a>=323)
{
a=1;
b=1;
}
if (a<=0)
{
a=322;
b=322;
}
parent.I1.location.href = "./19-20.08.06 ("+a+").jpg";
document.getElementById('ausgabe').innerHTML = "Bildname: 19-20.08.06 ("+a+").jpg";
document.getElementById('bild').innerHTML = "Bild "+b+" von 322";
}
//-->
</script>
<a href="#" onClick="wechsel(false)"><img src="./back.png" width="20" height="20" border=0></a>
</td>
<td height=10 width=150 algin="center">
<center>
<div id="bild"></div>
</center>
</td>
<td width="40%">
<a href="#" onClick="wechsel(true)"><img src="./next.png" width="20" height="20" border=0></a>
</td>
</tr>
<tr height=10>
<td height=10 colspan="3">
<center>
<div id="ausgabe"></div>
</center>
</td>
</tr>
<tr align="center">
<td colspan="3">
<iframe name="I1" height="100%" width="100%" align="center" border="0" frameborder="0" scrolling="no" src="19-20.08.06 (0).jpg">
</iframe>
</td>
</tr>
</table>
</body>
</html>
Zuletzt bearbeitet: