This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2006 > forcing html to fit to exact size of swf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author forcing html to fit to exact size of swf
scaggnetti

2006-04-21, 6:41 pm

When I publish the html how can I force the html page to be the exact number of
pixels as the swf? I would like it to have no space or html background left,
right, top, or bottom.

I tried adding:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

to the body portion of the html because I read it in an earlier post and that
eliminated the left and top portions. Now how do I get rid of the left and
bottom spaces and background.

Thanks in advance.

Christoph Varjas

2006-04-23, 3:34 am

Are you looking to resize the browser to fit your swf file exactly? So that
the swf doesnt scale but the browser window does?

Or do you want to simply remove the small html border that defaults around the
swf? So that it is flush up against the edges of browser window if it is
resized?

cecilomar

2006-04-24, 10:45 pm

This is good only if you are using a page inside a pop up because it
will resize the window to a specified width and height but if you have
toolbars the visible part of the page will be less than the specified.

This is a Javasript that you have to put between the <head> tags of you
page.


<script language="JavaScript">
<!--
// This will resize the window when it is opened or
// width is placed first, height is placed second
window.resizeTo(500,500)
-->
</script>


That's all.

scaggnetti

2006-04-26, 6:43 pm

Thanks for the reply. I am looking to remove the small html border that
defaults around the swf. Here is an example. Goto
http://www.updatehollywood.com/web_player/player.html

This is exactly how I would like to display the swf.

mgum

2006-04-26, 6:43 pm

You can go to this page and enter in all of your info and then it will give you the code to do what you want.
http://javascript.internet.com/gene...pup-window.html
Hope that this helps.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews