I am designing my website in Flash and after a publish it I want the brower to be at a fixed size once it opens. So no matter what the size of the browser is to begin with when you go to my site the browser pops up at 900x500 which is the size of my flash movie. My website is <!-- w --><a class="postlink" href="http://www.sergeeustache.com">www.sergeeustache.com</a><!-- w --><br />
<br />
How do you get rid of that 8th of an inch boarder the HTML page puts around a website? I wont the browser to fit exacly around the edges of the website. For example <!-- w --><a class="postlink" href="http://www.hotmail.com">www.hotmail.com</a><!-- w --> they have no boarder at all. Thank you.<!--content-->Sorry but I don't know Flash to answer your first question. If it's possible for Flash (or anything) to set the browser size upon visitation, then I guess that it would be worth learning. Are you proposing to change somebody with a 800x600 resolution to a 900x500 resolution? How would you change it back when they exited?<br />
<br />
<br />
For margin size I use:<br />
<br />
<style><br />
<!--<br />
<br />
body { margin:0; }<br />
<br />
--><br />
</style><br />
<br />
in the stylesheet.<!--content-->Put this in the head section of site:<br />
<br />
<!-- Idea by: Nic Wolfe (<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->) --><br />
<!-- Web URL: <!-- m --><a class="postlink" href="http://fineline.xs.mw">http://fineline.xs.mw</a><!-- m --> --><br />
<br />
<!-- This script and many more are available free online at --><br />
<!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> --><br />
<br />
<!-- Begin<br />
function popUp(URL) {<br />
day = new Date();<br />
id = day.getTime();<br />
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=500,left = -50,top = 50');");<br />
}<br />
// End --><br />
</script><br />
<br />
<br />
-----------------<br />
<br />
Replace your body tag so it looks like this:<br />
<BODY onLoad="javascriptopUp('http://Your Site Here')"<br />
<br />
<br />
Replace whats in bold to the URL of the page.<br />
Good Luck,<br />
Paul<!--content-->this is just my opinion, but if you resize a browser window bigger then the window is set at for default, could make people not want to visit anymore. if you resized it to 900 then it would be bigger than my screen and I would miss part of your site. wouldn't want that would ya??<!--content-->I also agree. Since flash dynamically resizes anyway, it shouldn't matter what size the viewers screen is. <br />
<br />
to open a fullscreen view, just add the statement fullscreen=true to your pop-up javascript. Just make sure you have a button somewhere that does a self.close(), or you'll make people mad.<!--content-->
<br />
How do you get rid of that 8th of an inch boarder the HTML page puts around a website? I wont the browser to fit exacly around the edges of the website. For example <!-- w --><a class="postlink" href="http://www.hotmail.com">www.hotmail.com</a><!-- w --> they have no boarder at all. Thank you.<!--content-->Sorry but I don't know Flash to answer your first question. If it's possible for Flash (or anything) to set the browser size upon visitation, then I guess that it would be worth learning. Are you proposing to change somebody with a 800x600 resolution to a 900x500 resolution? How would you change it back when they exited?<br />
<br />
<br />
For margin size I use:<br />
<br />
<style><br />
<!--<br />
<br />
body { margin:0; }<br />
<br />
--><br />
</style><br />
<br />
in the stylesheet.<!--content-->Put this in the head section of site:<br />
<br />
<!-- Idea by: Nic Wolfe (<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->) --><br />
<!-- Web URL: <!-- m --><a class="postlink" href="http://fineline.xs.mw">http://fineline.xs.mw</a><!-- m --> --><br />
<br />
<!-- This script and many more are available free online at --><br />
<!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> --><br />
<br />
<!-- Begin<br />
function popUp(URL) {<br />
day = new Date();<br />
id = day.getTime();<br />
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=500,left = -50,top = 50');");<br />
}<br />
// End --><br />
</script><br />
<br />
<br />
-----------------<br />
<br />
Replace your body tag so it looks like this:<br />
<BODY onLoad="javascriptopUp('http://Your Site Here')"<br />
<br />
<br />
Replace whats in bold to the URL of the page.<br />
Good Luck,<br />
Paul<!--content-->this is just my opinion, but if you resize a browser window bigger then the window is set at for default, could make people not want to visit anymore. if you resized it to 900 then it would be bigger than my screen and I would miss part of your site. wouldn't want that would ya??<!--content-->I also agree. Since flash dynamically resizes anyway, it shouldn't matter what size the viewers screen is. <br />
<br />
to open a fullscreen view, just add the statement fullscreen=true to your pop-up javascript. Just make sure you have a button somewhere that does a self.close(), or you'll make people mad.<!--content-->