vonHandCoder: Funktionen zusammen nicht lauffähig

Beitrag lesen

Hallo

Das folgende hab ich Dir schon hier und hier beschrieben:

1. Erstelle ein Vorschaubild pK.jpg

2. Erstelle ein großes Bild pG.jpg

3. Erstelle eine Datei thumbs.html:

<html><head><title>Thumbs</title></head><body>  
<img src="pK.jpg" width="40" height="40" border="0" alt="Vorschaubild" onclick="popup('pG');">
<script type="text/javascript">  
function popup(dateiname)  
{  
window.open("popup.html", dateiname, "width=600,height=400");  
}

</script></body></html>

4. Erstelle eine Datei popup.html:

<html><head><title>Thumbs</title></head>  
<body onload="ladeBild()">  
<img src="" alt="Da guckste">
<script type="text/javascript">  
function ladeBild()  
{  
document.images[0].src=this.name+".jpg";  
}

</script></body></html>

5. Packe alle in ein Verzeichnis, starte thumbs.html, klicke das Vorschaubild.

tschüs

--
cogito ergo akro