Webprogramming made easy
www.jojoxx.net

Bild i popup-fönster 5

 

Exempel

Visa bild

Script

<script type="text/javascript">
/*  The code contained in this  file is copyrighted by www.jojoxx.net
The file may be used for none commercial applications and distributed
as long as these lines remain intact.  The file or part of it may not
be sold  or  included  in any  other commercial  application  without
agreement from the author. If you have questions or comments, contact
the author at http://www.jojoxx.net

© Copyright - www.jojoxx.net - 2004                                */

function imgPopup5(url){
	var loader=new Image();
	var top=parseInt(screen.height/2-50); var left=parseInt(screen.width/2-50);
	var tempwin=window.open("","","scrollbars=no,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=100,height=100,top="+top+",left="+left);
	with(tempwin.document){
		open();
		write("<html><head><title>Bildvisare</title></head><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 style=\"overflow:hidden;background-color:black;color:white;\">");
		write("Please wait...");
		write("</body></html>");
		close();
	}
	loader.onload=function(){
		var top=parseInt(screen.height/2-this.height/2);
		var left=parseInt(screen.width/2-this.width/2);
		tempwin.close();
		MyWin = window.open("","","scrollbars=no,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width="+this.width+",height="+this.height+",top="+top+",left="+left);
		with(MyWin.document){
			open();
			write("<html><head><title>Bildvisare</title></head><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 style=\"overflow:hidden;\">");
			write("<img id='myimg' src=\""+url+"\">");
			write("</body></html>");
			close();
		}
	}
	loader.src=url;
}
</script>
<a href="../../images/www.jojoxx.net.onscreen.gif" onclick="imgPopup5(this.href); return false;">Visa bild</a>

Tillbaks