Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need window resize script.

Status
Not open for further replies.

Ivan1

Programmer
Jun 18, 2001
113
US
Hello everybody!
If anybody could help me out, please post a script that would resize the window upon opening. I'm inserting a 300X200 Flash movie in it. And would like to customize the opened window.
Thank you in advance.
IVAN
 
Hi,

Use this:

<BODY onload=self.resizeTo(&quot;300&quot;,&quot;200&quot;);self.focus();>

Hope this helps! NATE
spyderix.gif

design@spyderix-designz.com
 
You would want to make a popup window in that case.

You will need to make a link to the page in order to do this. Use the following:

<SCRIPT LANGUAGE=&quot;Javascript&quot;>
function popupWindow()
{
window.open(&quot;file.html&quot;,&quot;Alert&quot;,&quot;toolbar=no,location=no,directories=no,status=no,&quot; + &quot;menubar=no,scrollbars=no,resizable=no,&quot; + &quot;width=300,height=200,screenX=0,screenY=0&quot;)
}
</SCRIPT>

To call the page you need to put:
onClick=&quot;popupWindow()&quot; in either the <A> or the <INPUT> tag, depending on what way you want to call the window.

Hope this helps! NATE
spyderix.gif

design@spyderix-designz.com
 
No idea. You might want to ask that in the FLASH forum. Do I understand you correctly that you want to make this link from within your flash movie. Meaning your flash movie is the link to make the popup window?

Hope this helps! NATE
spyderix.gif

design@spyderix-designz.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top