Detta har jag inte gjort själv utan finns att hämta på jojoxx. Men det kanske är OK!!?? :OO
I head-taggen:
<script type="text/javascript">
/* Detta script finns att hämta på http://www.jojoxx.net*/
function imgPopup(url){
MyWin = window.open("","","scrollbars=no,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=100,height=100");
with(MyWin.document){
open();
write("<html>\n<head><scr"+"ipt>awidth=(document.layers)?0:8;awidth+=(document.all)?4:0;aheight=(document.layers)?0:29;</scr"+"ipt>\n<title>Bildvisare</title>\n</head>\n<body onLoad=\"window.resizeTo(document.images[0].width+awidth,document.images[0].height+aheight)\"marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 style=\"overflow:hidden;\">\n");
write("<img src=\""+url+"\">\n");
write("</body>\n</html>\n");
close();
}
}
</script>
I body-taggen:
<a href="bild_stor.jpeg"onClick="imgPopup(this.href); return false;"><img src="bild_liten.jpg" border="0">Ev. textsnutt</a>
