View previous topic :: View next topic |
Author |
Message |
Instetus
Joined: 15 Apr 2004 Posts: 7 Location: Zagreb, Croatia
|
Posted: 19.04.2004 14:54 Post subject: pozicioniranje window.open otvorenig prozora |
|
|
ojla!
zhelim otvorit prozor s window.open, ali na nachin da na bilo kojoj rezoluciji taj prozorchek bude centriran na sredinu ekrana.
jel se moze kak detektirat reza korisnika i onda te brojkice podijeliti na 2 i dobit sredinu? |
_________________ Should I ever become an evil overlord, my force-field generators would be located INSIDE the shield they generate. |
|
Back to top |
|
|
ska
Joined: 08 Oct 2003 Posts: 402
|
Posted: 19.04.2004 15:02 Post subject: |
|
|
evo...
<script language="JavaScript">
<!--
windowWidth=780;
windowHeight=420;
if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
//-->//-->
</script>
u windowWidth; i windowHeight;
upši koliki prozor otvaraš.
nadam se da je to to što tražiš. |
_________________ ska |
|
Back to top |
|
|
Instetus
Joined: 15 Apr 2004 Posts: 7 Location: Zagreb, Croatia
|
Posted: 19.04.2004 15:08 Post subject: |
|
|
je, to je to. thanx..
jeez, nisam pojma imao da ljudi ovdje tak brzo daju odgovore koji RADE =)
thanx again |
_________________ Should I ever become an evil overlord, my force-field generators would be located INSIDE the shield they generate. |
|
Back to top |
|
|
|