Forums

This topic is locked

Need Help!?

Posted 06 Jan 2006 00:19:00
1
has voted
06 Jan 2006 00:19:00 Nick Pezzillo posted:
How do i control the window size of a new window when button is clicked. I have buttons which link to videos on my page, and i want the videos to open in a new window which is a little bigger than the video itself. How can i do this? I am creating the page in fireworks and importing it into dreamweaver.

Replies

Replied 06 Jan 2006 14:34:43
06 Jan 2006 14:34:43 Barry James replied:
Two ways:

In the new window:

<body onload="openNewWin()">

function openNewWin()
{
window.open('newwindow.asp', 'aspWindow', 'height=200,width=200,toolbar=no,statusbar=no,location=no,menubar=no,scrollbars=no');
}

Or if you're using a button to open the new window the form action can be:

"window.open('newwindow.asp','height=200,width=200')"
Replied 07 Jan 2006 19:32:41
07 Jan 2006 19:32:41 Nick Pezzillo replied:
What seems to happen though is if i put another funtion into the page in dreamweaver after i've exported it out of Fireworks, the buttons that i created in fireworks don't function correctly. Allso, I'm not able to do anything to the javascript on the new windows that are opening all the scripting has to be done in the main window. Check out my site to see what i mean. www.evofilmworks.com

thanks for your help
Nick
Replied 07 Jan 2006 23:23:47
07 Jan 2006 23:23:47 Javier Castro replied:
If I'm not mistaken. Fireworks in adition to generate the html code, it generates a JS file. Either in your html or JS file, there should be the function to open the new window. You can actually locate the function and add the properties of the window without creating a new function .

'height=200,width=200,toolbar=no,statusbar=no,location=no,menubar=no,scrollbars=no'

Hope it helps.

Javier

Reply to this topic