PDA

View Full Version : getURL window with maximize button accessible!



artane
August 20th, 2003, 12:27 PM
hey guys,

I've been trying to get a bit of control over the "getURL" action. I want the window that pops up to be a particular size, centered and have the maximize button accessible (it always seems to be greyed-out).

heres the code I've been using:

on (release) {
getURL("javascript:openNewWindow('http://www.google.com','thewin','height=600,width=400,max imize=yes,toolbar=no,sc\r\nrollbars=no')\r\n\r\n");
}


This is all on one line. I've tried adding things like "maximize=yes" but that isn't doing squat.

Within the HTML, I've got this:

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

Can somebody please help? I've tried a few of the components that are supposed to make this easy but, I haven't found one that works properly yet.

Thanks very much,

artane

REEFˇ
August 21st, 2003, 06:17 PM
Well just cause you have "maximize=yes" doesnt mean the button will maximize it. How will Flash even know that code is for the button.

I highly doubt that there is a code for making a flash button that maximizes the window. Maybe there is, search google. Why in the hell would you try to make a button for maximize...when browsers already have a max button? Trust me dude, if you're trying to make whatever your trying to make cooler by adding a max button, it won't work.

But there is a code for just maximize the window as soon as it opens...I think it's:


<script>
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.avail Height);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>


It's not actionscript, it's html, this forums does allow you to post php and actionscript but not html....wierd. Anyways, put that code in the window thats gonna popup. I don't know if it'll work or not, I'll search google if it's possible to achieve what you're trying to do.;)

artane
August 23rd, 2003, 12:48 PM
Oh, Ok

Thanks Sharif, I really appreciate your help. I'm gonna give this a try. You're right though, the max button isn't gonna do squat for my site's coolness factor. Ha :)

artane