PDA

View Full Version : full screen.


Phaty
01-15-2002, 10:49 AM
i once got this java script from a guy on another forum, he said, that it i use it , it will size my flash movie according to the viewers monitor, but for the life of me i can figure it out.

see i have had problems with getting my flash movie to go full screen, as there always seems to be 'gaps' on smaller monitors
see if u guys can make sense of it.




<!--
Popup Window
Version 2.0
Last Updated: August 21, 2001
Author: Siddharth Rao -->


<script language="javascript" type="text/javascript">
function openAWindow( pageToLoad, winName, width, height, center) {
/* Arguments:
pageToLoad - URL
winName - Name ofwindow.
width - The horiz size of window.
height - The vert size ofwindow.
center - 1=centered 0=no centering
example - <a href="javascriptpenAWindow('ice.html','ice',375,250,1)">Ice</a>
*/
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,"
+ "status=0,"
+ "scrollbars=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN Only
+ "screeny=" + yposition + "," //NN Only
+ "left=" + xposition + "," //IE Only
+ "top=" + yposition; //IE Only

WindowOpened=window.open( pageToLoad,winName,args );
WindowOpened.focus();
}
</script>