TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Browser Window Dimmensions

Page: 1 Reply
Mar 24th 2002#37249 Report
Member since: Apr 7th 2001
Posts: 366
Okay guys I've got a question for ya. A friend of mine is looking for a script that will allow him to set the dimensions of a browser window that will pop-up froma link. Where might he or I find this?? I've searched google but can't seem to find what I'm looking for, though then again I'm not the greatest at using search engines. :rolleyes: :( :o

So if you know where i can find this script and perhaps a tutorial on how to use it that would be great! If you have the script and no tut that's fine too just let me know how to use it.

Thanks for the help guys.

Oh and PS I put this in the wrong section. I don't feel well so forgive me please.
Reply with Quote Reply
Mar 24th 2002#37254 Report
Member since: Sep 6th 2001
Posts: 3893
you dont need to use a javascript for that.....just use this code....

---------------------
< a href="#" onClick="MM_openBrWindow('something.html','something','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,width=250,height=250')">link

---------------------
just get rid of the space between the < and the a and then the one at the end between the a and the >....

Then you can change the demetions to whatever you want....the "something.html" is replaced with the html that he want to open in that window...the "something" is the title of the window and then if he doesnt want any of the toolbars or the location bar or the status bar or menu bars etc...then just cut them out of the code...the "#" symbol must stay there so that the link will work it wont show up....and then you can replace the "link" thing at then end with whatever you want the person to click on...fweew....lol
Reply with Quote Reply
Mar 24th 2002#37255 Report
Member since: Mar 20th 2001
Posts: 3367
That's just a function call.. You'll need to define a function first to be able to use that.. Here's the function ....

function OpenWindow( url, width, height, options, name )
{
if ( ! width ) width = 475;
if ( ! height ) height = 250;
if ( ! options ) options =
"scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
if ( ! name ) name = "outsideSiteWindow";
var newWin = window.open( url, name, "width=" + width + ",height=" +
height + "," + options );
}

View the source on my Gallery page to get more info..
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum