Just nu i M3-nätverket
Jump to content

pop!!


eko

Recommended Posts

Detta skall nog fungera är tveksam om det fungerar i NS 7

 

I <body> lägger du sedan onload javascript:windowopen(test.html','800','600','test')

 

<script LANGUAGE="javascript">

<!--

function windowopen(URL, bredd, hojd, fonsternamn){

browserVer=parseInt(navigator.appVersion);

browserName=navigator.appName;

if (browserVer >= 3){

if (browserName == "Microsoft Internet Explorer"){

x = screen.width;

y = screen.height;

} else {

tools=java.awt.Toolkit.getDefaultToolkit();

size=tools.getScreenSize();

x = size.width;

y = size.height;

}

x = parseFloat(x) / 2 - parseFloat(bredd) / 2;

y = parseFloat(y) / 2 - parseFloat(hojd) / 2;

}

window.open(URL, fonsternamn, "top=" +y + ",left=" + x + ",width=" + bredd + ",height=" + hojd);

}

//-->

</script>

 

 

 

[inlägget ändrat 2002-09-24 13:14:48 av rognym]

[inlägget ändrat 2002-09-24 13:15:03 av rognym]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...