<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi, Geoff<BR>
Since I'm not making any money lately,&nbsp;I'll try making giveaways! <BR>
This code is supposed to do&nbsp;the work.<BR>
*Win OS:&nbsp;IE, FX guarantied, you test it in Safari and let us know.<BR>
&nbsp;<BR>
&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&lt;TITLE&gt;WIDTH ADJUST&lt;/TITLE&gt;<BR>&lt;style&gt;<BR>&lt;/style&gt;<BR>&lt;/HEAD&gt;<BR>&nbsp; &lt;BODY SCROLL=Auto&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;DIV&gt;<BR>&nbsp;Get adjusted "window width" fit&nbsp;desired "page width".<BR>&nbsp;&nbsp;&nbsp; &lt;/DIV&gt;<BR>&nbsp; &lt;/BODY&gt;<BR>&lt;SCRIPT&gt;<BR>
<FONT>var viewport=512 //change to your desired value<BR>var curBrowser=window.navigator.appName<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp; if(<FONT>curBrowser.length</FONT>&gt;8){<BR>&nbsp;curBrowser = <FONT>curBrowser.slice</FONT>(<FONT>curBrowser.length</FONT>-8)<BR>&nbsp;&nbsp;}<BR>//&nbsp;&nbsp;alert(curBrowser)<BR>
<BR>var scrlbar, yes = 16, no = 0;<BR>
&nbsp;<BR>
var actual = document.body;<BR>
&nbsp;&nbsp;&nbsp; if (actual.scrollHeight &gt; actual.clientHeight){<BR>//&nbsp;&nbsp;alert("scrollbars needed")<BR>&nbsp;&nbsp;scrlbar = yes<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp; else{<BR>//&nbsp;&nbsp;alert("scrollbars not needed")<BR>&nbsp;&nbsp;scrlbar = no<BR>&nbsp;&nbsp;}<BR>
&nbsp;<BR>
var BR = new Object()<BR>&nbsp; BR.Explorer = 12<BR>&nbsp; BR.Netscape = 8 //firefox, Safari<BR>&nbsp; BR.Opera&nbsp;&nbsp;&nbsp; = 14//Although Opera &amp; Navigator&nbsp;r currently not supprting "resizeTo()"<BR>
&nbsp;<BR>
var frame = eval("BR."+curBrowser)<BR>
var newWidth = viewport + frame + scrlbar<BR>
&nbsp;<BR>
window.<FONT>resizeTo</FONT>(newWidth, screen.availHeight); <BR>window.moveTo(0,0)<BR>//&nbsp;&nbsp;alert(newWidth)<BR>
</FONT>&nbsp;<BR>
&lt;/SCRIPT&gt;<BR>&lt;/HTML&gt;<BR>
P.S.:<BR>This algo&amp;code approach is&nbsp;fully original. Place it at the bottom of your other scripts to make sure it works properly.<BR>
Regards.<BR>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Troy&nbsp;III<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressive&nbsp;art&nbsp;enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px">
<HR id=EC_stopSpelling>
From: geoffreyk@seanet.com<BR>To: javascript@LaTech.edu<BR>Subject: RE: [Javascript] Resizing browser window<BR>Date: Tue, 25 Jul 2006 07:27:43 -0700<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_shape
{;}
</STYLE>

<STYLE>
</STYLE>

<STYLE>
.ExternalClass EC_p.MsoNormal, .ExternalClass EC_li.MsoNormal, .ExternalClass EC_div.MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass EC_a:link, .ExternalClass EC_span.MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass EC_a:visited, .ExternalClass EC_span.MsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
.ExternalClass p
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass EC_span.EmailStyle18
{font-family:Arial;color:navy;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass EC_div.Section1
{page:Section1;}

</STYLE>

<DIV class=EC_Section1>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks Troy,</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">This may help if I can’t find a more direct way of getting these measurements or accomplishing my goal in another manner.</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Really I am hoping to find some sort of property that I can query to get these values on the fly or a different way to resize a window.</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks though, I very well may end up using these values</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">-Geoff</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<DIV>
<DIV class=EC_MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV></DIV></DIV></BLOCKQUOTE><br /><hr />Express yourself instantly with Windows Live Messenger! <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=joinmsncom/messenger' target='_new'>Windows Live Messenger!</a></body>
</html>