[Javascript] Mac Javascript
Martin Podrouzek
art_bedla at hotmail.com
Mon Jun 3 03:43:36 CDT 2002
Top of the day to you.
I am recently making a website, which utilises Flash animation.
Unfortunately it should be kept in a fixed-size window. Although it works
under windows Mac is having troubles to
either to display Flash movie (gives a nonsesne-error in the window) or
won't display the window at all. Can anyone help Please?
The code is:
<!--
Popup Window
Version 2.0
Last Updated: May 7, 1999
Code maintained at: http://www.moock.org/webdesign/javascript/
Copy permission granted for non-commercial uses. Written by Colin Moock.-->
<!--END LAUNCHING PAGE CUTNPASTE CODE-->
</head>
<body onload="launchwin('File.swf','NewWindow','500','275','0');">
<script language="JavaScript"> var javascript_version = 1.0;</script>
<script language="JavaScript1.1"> javascript_version = 1.1;</script>
<script
language="JavaScript">
var newwin;
function launchwin(winurl,winname, w, h, resize)
{
//This launches a new window and then
//focuses it if window.focus() is supported.
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',
resizable='+resize+',top='+TopPosition+',left='+LeftPosition;
newwin = window.open(winurl,winname,settings);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
</script>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
More information about the Javascript
mailing list