Hi you guys!
thanx 4 letting me in here...i´m quite desperate 4 a couple of days already, cause i´ve found lot´s of help on popups from the web, but it all doesn´t work out. i copied some other website tryin to make my own first one, but the popup picture gallery doesn´t work. all i get is a blank pop upwindow. and here´s what i put in:
in the HEAD i put:
<script language=Javascript>
function PopupPic(sPicURL) {
window.open("popup.htm?"+sPicURL, "","resizable=1,HEIGHT=550,WIDTH=550" );
}
</script>
, in the BODY:
<td align="center" width="70%">
<table border="0">
<TBODY>
<tr>
<td width="140" height="93" align="center">
<p><a href="java script:PopupPic('galerie1/birtebilder/kanal.gif')">
<img name="kanalklein" alt="am kanal" align="center" border="0" width="112" height="150" src="galerie1/kanalklein.jpg">
</a><BR>
</p>
</td>
</tr>
<tr>
<td>
<p><a href="java script:PopupPic('galerie1/birtebilder/raucher.gif')">
<img name="raucher" alt="mit Raucher" align="center" border="0" width="150" height="113" src="galerie1/raucherklein.jpg">
</a><BR>
</td>
<td>
<p><a href="java script:PopupPic('galerie1/birtebilder/blume.gif')">
<img name="blume" alt="mit Blume" align="center" border="0" width="150" height="112" src="galerie1/blumeklein.jpg">
</a><BR>
</p>
</td>
</tr>
</table>
</table>
</td>
</tr>
</table>
</body>
</html>
as you can guess...there´s the subdirectories /galerie1 (for the small ...klein.jpg pics) and underneath (inside) /birtebilder where i put the large pics in.
i used the recomended popup.htm file:
<HTML>
<HEAD>
*<TITLE>PopupPic</TITLE>
*<script language='javascript'>
* *var Temp=self.location.href.split("?" );
* *var PicURL = (Temp.length>0)?arrTemp[1]:"";
* *var NS = (navigator.appName=="Netscape" )?true:false;
* * *function FitPic() {
* * * *iWidth = (NS)?window.innerWidth:document.body.clientWidth;
* * * *iHeight = (NS)?window.innerHeight:document.body.clientHeight;
* * * *iWidth = document.images[0].width - iWidth;
* * * *iHeight = document.images[0].height - iHeight;
* * * *window.resizeBy(iWidth, iHeight);
* * * *self.focus();
* * *};
*</script>
</HEAD>
<BODY onload='FitPic();' topmargin="0" *
marginheight="0" leftmargin="0" marginwidth="0">
*<script language='javascript'>
*document.write( "<img src='" + PicUrl + "' border=0>" );
*</script>
</BODY>
</HTML>
and i´m going nuts....should i put something in for " + PicUrl +" or is it part of javascript? please....where´s my mistake? i know i´m a bloody amateur...but thanx anyway!
greetings
sebizwo