Pop Up Javascript |
Pop Up Javascript |
![]()
Post
#1
|
|
![]() talent on another level ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 746 Joined: Oct 2006 Member No: 475,735 ![]() |
What is the script to make a pop up like this, to fit the image so perfect. Example
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 793 Joined: Jun 2006 Member No: 425,250 ![]() |
If you look at people's source on their sites, you'll learn a lot
CODE <script type="text/javascript" language="JavaScript">
var pWin = null, HTML = ''; function picwin(url,width,height,title) { if (pWin && !pWin.closed) pWin.close(); if (!arguments.length) return; HTML = ''; HTML += '<html><head><title>'+title+'</title></head>'; HTML += '<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"'; HTML += ' onblur="setTimeout(\'self.focus()\',1000)"'; //sticky HTML += '><img border="0" src="' + url + '"></body></html>'; var left = screen.width/2 - width/2; var top = screen.height/2 - height/2; var chrome = 'status=0,width='+width+',height='+height+',left='+left+',top='+top; pWin = open('java script:opener.HTML','pWin',chrome); if (pWin && !pWin.closed) pWin.focus(); } </script> |
|
|
![]() ![]() |