Hi all,
Guys i don't know if this topic was posted before,but i could not find it.
If it exist, just give me relevant links.
I have managed to use javascript to resize my pages according to the screen resolution. My problem is that, the header is a swf file of dimension 800 x 100.
when the resolution is 800 x 600 it fit fine, but when i change it to 1024 x 768
it does not realy look nice.

So how can i either change the width upon detecting the screen resolution or may be load a different swf file longer enough to feet 1024?

Please guys im not that good with jscript, but i easly can learn from you guys!
Here is what im trying to achieve
HTML Code:
<script language="javascript" type="text/javascript">
<!--
if (screen.width==800){
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="100">
              <param name="movie" value="../animations/header.swf" />
              <param name="quality" value="high" />
              <embed src="../animations/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="100"></embed>
          </object>;
} 

if (screen.width==1024){
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="100">
              <param name="movie" value="../animations/header2.swf" />
              <param name="quality" value="high" />
              <embed src="../animations/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="900" height="100"></embed>
          </object>;
} 
-->
</script>
Ofcourse this code is not working, but i just want you guys to visualise what im trying to achieve.