# Resize content

**URL:** <https://forum.kirupa.com/t/resize-content/273371>\
**Category:** web dev\
**Created:** [October 14, 2008, 9:32pm UTC](https://forum.kirupa.com/t/resize-content/273371 "2008-10-14T21:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![msin33](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@msin33](https://forum.kirupa.com/u/msin33)\
**Post date:** [October 14, 2008, 9:32pm UTC](https://forum.kirupa.com/t/resize-content/273371/1 "2008-10-14T21:32:01Z")

</div>

Issue: resize site (designed in Flash & HTML) to fit viewer browser.

I need the browser to auto detect visitors monitor resolution and ‘fit’ accordingly.

Eg. My monitor is set @ 1920x1200. If I set monitor resolution @ 1024x768 or 800x600 I want the site o resize to display accordingly.

Been trying with the following without success. Any help would be appreciated.  
Thanks in advance.

* * *

\<SCRIPT language=javascript\>  
\<!–  
function openBrWindow(url, name, width, height) {  
var str = “height=” + height + “,innerHeight=” + height;

```
str += ",width=" + width + ",innerWidth=" + width;

if (window.screen) {
     var ah = screen.availHeight;
     var aw = screen.availWidth;
     var xc = (aw - width) / ;
     var yc = (ah - height) / ;
     str += ",left=" + xc + ",screenX=" + xc;
     str += ",top=" + yc + ",screenY=" + yc;
     str += ",location=no,menubar=no,scrollbars=no,status=no,resizable=yes,toolbar=no";
}
      var myWin = window.open(url, name, str);

```

}  
//–\>  
\</SCRIPT\>

\<META content=“MSHTML 6.00.2800.1400” name=GENERATOR\>  
\<script src=“Scripts/AC\_RunActiveContent.js” type=“text/javascript”\>\</script\>  
\</HEAD\>

\<BODY background=index\_files/1.jpg topMargin=0\>  
\<BODY onResize=“document.location.reload()”\>  
\<TABLE height=“100%” cellSpacing=0 cellPadding=0 width=808 align=center  
border=0\>  
\<TBODY\>  
\<TR\>  
\<TD width=14 background=index\_files/2.jpg height=“100%”  
rowSpan=2\>&nbsp;\</TD\>  
\<TD vAlign=top width=781 height=840\>\<script type=“text/javascript”\>  
AC\_FL\_RunContent(

‘id’,‘flash’,‘codebase’,'[http://fpdownload.a.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0’,‘name’,‘flash’,‘width’,'7](http://fpdownload.a.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','name','flash','width','7)

80’,‘height’,‘870’, ‘scale’, ‘ExactFit’,

‘align’,‘middle’,‘src’,‘flash’,‘quality’,‘high’,‘bgcolor’,’#113c29’,‘name’,‘flash’,‘menu’,‘false’,‘allowscriptaccess’,'sameDomai

n’,‘pluginspage’,‘[http://www.a.com/go/getflashplayer’,‘movie’,'flash](http://www.a.com/go/getflashplayer','movie','flash)’ ); //end AC code  
\</script\>  
\<noscript\>  
\<object id=flash  
codebase=http://fpdownload.a.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 name=“flash”  
height=870 width=“780” scale=“ExactFit” align=middle  
classid=clsid:d27cdb6e-ae6d-16cf-96b8-444553543333\>  
\<param name=“allowScriptAccess” value=“sameDomain”\>  
\<param name=“movie” value=“flash.swf”\>  
\<param name=“quality” value=“high”\>  
\<param name=“menu” value=“false”\>  
\<param name=“scale” value=“ExactFit”\>  
\<param name=“bgcolor” value="#113c29"\>  
\<embed src=“flash.swf” quality=“high” bgcolor="#113c29" width=“780”  
height=“870” scale=“ExactFit” name=“flash” menu=“false” align=“middle”  
allowscriptaccess=“sameDomain” type=“application/x-shockwave-flash”  
pluginspage=“[http://www.a.com/go/getflashplayer](http://www.a.com/go/getflashplayer)”\>\</embed\>  
\</object\>  
\</noscript\>

```
&lt;TD width=14 background=index_files/3.jpg height="100%" 
rowSpan=2&gt;&nbsp;&lt;/TD&gt;

```

\</TR\>  
\<TR\>  
\<TD vAlign=top background=index\_files/3.jpg  
height=“100%”\>&nbsp;\</TD\>\</TR\>\</TBODY\>\</TABLE\>  
\<BODY onContextMenu=“return false”\>  
\</BODY\>\</HTML\>
