<!DOCTYPE
html PUBLIC "-//
W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html>
<head>
<title>Merlin Quacks-Evita Schwörer</title>
<?
$Max=93; # Anzahl verwendeter Bilder !!! umbedingt bei Änderungen ändern !!!
print("<script language=\"JavaScript\">
<!--
function OnLoad_Func()
{
ImagePreload();
img_resize();
}
function ImagePreload()
{
document.Vorladen = new array()
for(var i = 1; i < 10; i++)
{
document.Vorladen[i] = new Image();
document.Vorladen[i].src = \"0\" + String(i) + \"_M.jpg\";
}
for(var i = 10; i < $Max + 1; i++)
{
document.Vorladen[i] = new Image();
document.Vorladen[i].src = String(i) + \"_M.jpg\";
}
}
function img_forward()
{
var name = '_M';
var ActualImage = document.images[\"image\"].src;
var lastSlash = ActualImage.lastIndexOf('/');
var Count_String = ActualImage[lastSlash+1]+ActualImage[lastSlash+2];
var Count = parseInt(Count_String, 10);
Count = Count + 1;
if (Count == $Max+1)
{ Count = 1; }
var NewCount = String(Count)
while (NewCount.length < String(".$Max.").length )
{
NewCount= \"0\"+NewCount;
}
var NewImage = NewCount + name + '.jpg';
document.images[\"image\"].src = NewImage;
img_resize();
document.title =String(Count)+\" - \"+NewImage;;
}
function img_back()
{
var name = '_M';
var ActualImage = document.images[\"image\"].src;
var lastSlash = ActualImage.lastIndexOf('/');
var Count_String = ActualImage[lastSlash+1]+ActualImage[lastSlash+2];
var Count = parseInt(Count_String, 10);
Count = Count - 1;
if (Count == 0)
{ Count = $Max; }
var NewCount = String(Count)
while (NewCount.length < String(".$Max.").length )
{
NewCount= \"0\"+NewCount;
}
var NewImage = String(Count) + name + '.jpg';
document.images[\"image\"].src = NewImage;
img_resize();
document.title =String(Count)+\" - \"+NewImage;;
}
function img_resize()
{
var img_img = new Image();
img_img.src = document.images[\"image\"].src;
var img_width = img_img.width;
var img_height = img_img.height;
var img_width_new = 600;
var img_height_new = 450;
if (img_width >= img_height)
{
img_height_new = img_height * (600 / img_width);
}
else if (img_height > img_width)
{
img_width_new = img_width * (480 / img_height);
}
document.images[\"image\"].width = img_width_new;
document.images[\"image\"].height = img_height_new;
}
function ImageOver(imagename)
{
if (imagename == \"back\")
{
document.images[\"back\"].src = \"zuruckover.jpg\";
}
else if (imagename == \"forward\")
{
document.images[\"forward\"].src = \"vorover.jpg\";
}
}
function ImageOut(imagename)
{
if (imagename == \"back\")
{
document.images[\"back\"].src = \"zuruck.jpg\";
}
else if (imagename == \"forward\")
{
document.images[\"forward\"].src = \"vor.jpg\";
}
}
-->
</script>\n");
?>
</head>
<body onLoad="OnLoad_Func()" bgcolor="white" link="white">
<center>
<table border="0" width="906">
<tr>
<td valign="middle" width="150" height="480"> <a href="javascript
:img_back();">
[img]zuruck.jpg[/img]
</a> </td>
<td align="center" valign="middle" width="596">
<? print("<img src=\"01_"."M".".jpg\" id=\"image\" name=\"image\" alt=\"image\" onClick=\"img_forward();\" />"); ?>
</td>
<td valign="middle" width="150"> <a href="javascript
:img_forward();"> [img]vor.jpg[/img]
</a> </td>
</tr>
<tr>
<td colspan="2" height="40" valign="top" align="left"> Bild 001 </td>
<td valign="top" align="right"> <font>© by Mikescher.de</font> </td>
</tr>
</table>
</center>
</body>
</
html>