Als ik dit script in een popup open met de width+height van het orginele plaatje dan krijg ik links en boven margins 
Weet iemand hoe ik dit weg krijg?
En dan heb ik dit als popup:
function pop(url,width,height)
{
Window=open(url,'foto','resizable=no,width=' + width + ',height=' + height + ',location=no,status=no,scrolling=no');
}
p.s. ik krijg ook een js syntaxis fout
weet iemand hoe dat komt?
Weet iemand hoe ik dit weg krijg?
PHP:
1
2
3
4
5
6
7
8
9
10
11
| <? if($fn=fopen("/fotos/$det[0]-$det[1].gif","r")) { header("Content-type: image/gif"); fpassthru($fn); } else { ?><b><font face="Verdana" size="2">Ongeldige invoer.</font></b><? } ?> |
En dan heb ik dit als popup:
function pop(url,width,height)
{
Window=open(url,'foto','resizable=no,width=' + width + ',height=' + height + ',location=no,status=no,scrolling=no');
}
PHP:
1
2
3
4
5
| <? print "<a href=\"javascript:void();\" onclick=\"pop('$url',$w,$h)\"><IMG SRC=\""; print $url; print "\" width=$width height=$height border=0></a></td>"; ?> |
p.s. ik krijg ook een js syntaxis fout
www.dannyhiemstra.nl