"Sorry didnt notice Id picked the wrong forum link"
Back there again!.. Do I just want to make my life hard?.. lol...
Its a tricky script(idea) I havent seen it done!.....
Theres a lot of popup win centered scripts, theres a couple of popup win by % not px scripts around...... Theres none doing the 2 together.... I was hidding behind window by % with "center:yes" tag but only works in ie...
I understand why.. Im asking the impossible, a centered popup win that has no idea what the new windows % size will be.. How do you center that??....
Have spent a couple of days trying to merge.. man there was some ugly code.. lol.... This is as close as I can get (test and youll see the prob)....
If theirs anyway to improve on this output would be grateful... Cheers BCode:<html> <head> <title>Untitled Document</title> <SCRIPT LANGUAGE="JavaScript"> function MyPopUpWin() { var iMyWidth; var iMyHeight; iMyWidth = (window.screen.width/2); iMyHeight = (window.screen.height/2); var winWidth=screen.width*.4; var winHeight=screen.height*.3; var win2 = window.open("https://www.facebook.com/login.php","Window2","status=no,height="+winHeight+",width="+winWidth+",resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=yes,location=no,directories=no"); win2.focus(); } </SCRIPT> </head> <body> <A HREF="javascript:MyPopUpWin()">This is the link</a> </body>




Reply With Quote