Okay for anyone who knows javascript! I am working or have a working script that makes it so Netscape or Internet Explorer open in a new window at a certain size, with the window not resizable and etc, but when I open the link and window up in Linux with Netscape or Mozilla, it doesn't recognize or I don't know how to get it to work to read the size of the new window. Instead of the window opeing to the specific size that I state in the script, it opens in a new window at the default size that the parent window is.
Here is my script in the head of the HTML tag:
<script language="JavaScript">
<!-- Start New Window Link JavaScript. -->
<!--
function openNewWin(pageToLoad, winName, width, height, center)
{ xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >=4) && (center)){
xposition = (screen.width - width) /2;
yposition = (screen.height - height) /2;
}
args = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=1,1"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN Only
+ "screeny=" + yposition + "," //NN Only
+ "left=" + xposition + "," //IE Only
+ "top=" + yposition; //IE Only
window.open( pageToLoad,winName,args );
}
//-->
</script>
Here is what I put in the body for the link:
<p><a href="javascript: openNewWin('main.html','newWin',700,600,1)" onmouseover="window.status='Enter TrickyLive.com - Apoplexy Of The Mind';return true" onmouseout="window.status='';return true"><img src="main05.JPG" width="150" height="75" border="0"></a>
If anyone could help me out in making this work in Linux with Netscape or Mozilla that would wonderful.
|