PDA

View Full Version : opening a window using java script


alostorah
10-31-2003, 06:06 PM
good day members

i am building a site not complete on this link

http://geocities.com/alostorah2006/buttons.swf

when you press the button flash it will open a windown and you will see my site

my question is the window is not opened like this site
http://www.estudio.com

which i believe everybody knows this site
i want it to open and to be placed in the full screen

hope my question is understandable


any help guys

thanks

mparter
10-31-2003, 08:32 PM
Examinig the source reveals how they have achieved this. On the first page, they have a javascript function like so:

<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>

then in the body tag, they have the following in the onload event:

onLoad="MM_openBrWindow('Flash/index.htm','MainWin','width=800,height=600')"

This basically says open the Flash/index.htm page in a new window with a width of 800 and a height of 600.

In the page that get's loaded from here, they then have another onload event which basically resizes the window to the size of the current available window size, using this function:

self.resizeTo(screen.availWidth,screen.availHeight );

alostorah
11-08-2003, 04:47 PM
good evening

sorry for the deay and thanks for your help

will you please expain to me more how can i add this code and where i will add it


i could not understand your reply so please if you have time to explain how can i add this code and where?

thanks for you help?