PDA

View Full Version : Create a popup window with specific size



stellagifford
05-18-2005, 05:39 AM
Hi,

I'm trying to create a popup window that opens when a button on a flash movie is pressed. Here is the link that I got from another site on how to do it, but it's not working. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14192

I'm trying the Javascript answer, the second way to do it listed on the page. So far here is what I have:
On the button on the flash movie:
on(press){
javascript:openNewWindow('http://www.classicnursery.com/popup.html','thewin','height=285,width=350,toolbar =no,scrollbars=yes')
}

In the index_home.html page code in the <head> tags:
<script language="JavaScript">
function openNewWindow('http://www.classicnursery.com/popup.html', 'thewin', windowFeatures) {
newWindow=window.open('http://www.classicnursery.com/popup.html', 'thewin', windowFeatures); }
</script>

I don't think that I understand what they want me to put for "windowFeatures" at the end of those two lines, it says to put info related to: 'thewin','height=400,width=400,toolbar=no,
scrollbars=yes'
But I havn't gotten it to work. I hope that you can help, this is a pretty big part of this page! Thanks!

NTD
05-18-2005, 04:57 PM
Hi,

You need to use the getURL method to open a javascript pop up window....



on &#40;release&#41; &#123;
getURL &#40;"javascript&#58;NewWindow=window.open&#40;'http&#58;//www.classicnursery.com/popup.html','newWin','width=350,height=285,toolbar =No,location=No,scrollbars=Yes,status=No,resizable =Yes,fullscreen=No'&#41;; NewWindow.focus&#40;&#41;; void&#40;0&#41;;"&#41;;
&#125;