Setting website size?

liunx

Guest
Hey guys. I was wondering how I can make a site come up and not take up the full screen. For example pop up adds have these different sizes. How can I achieve this with HTML? I know I'm a newbie X-( thanks though guys.<!--content-->you can only do this through popups, do a forum search, plenty of threads on how to do this, one recently.<br />
<br />
<br />
post back if you can't find them ;)<!--content-->If you are trying to do this with a popup, do like leoo said, and do a quick search here. If you are trying to make your main page load to be a different size, add this to the body tag:<br />
<br />
onLoad="resizeTo(640,480);"<br />
<br />
<br />
The 640 in that example is the width of the screen, and the 480 is the height<!--content-->Aaron, you can't resize the users default window. they have to make the window with javascript first to resize.<br />
<br />
besides if I was to go to a site and they made my brwoser smaller then it would make me mad enough to never return to that site.<!--content-->Scoutt...First off, I agree. I DO NOT recommend re-sizing a users main browser, but you CAN do it. A friend of mine made a flash site that opened popup style windows, but he didn't know how to set the size of the popup in flash, so we found that code. I didn't test it in too many browsers, but it WILL work (at least in IE, and FireBird). Point your browser to <!-- m --><a class="postlink" href="http://www.blackmollymusic.com/mess.htm">http://www.blackmollymusic.com/mess.htm</a><!-- m --> and keep in mind that this is not meant to browse to directly, but is used as a popup.<!--content-->unless something has changed in javascipt, it says<br />
After a window is open, you cannot use JavaScript to change the windowFeatures. and part of the window features is the size.<!--content-->There's quite a bit of JavaScript that you can do after a window loads. Stuff like resizing, moving, etc. You can make a window shake (move left&Right, or Up&Down), scroll up/down/left/right, etc. Look at some of the stuff you can do here:<br />
<!-- m --><a class="postlink" href="http://www.webreference.com/js/tutorial1/manipulate.html">http://www.webreference.com/js/tutorial ... ulate.html</a><!-- m --><!--content-->I understand that, but I got that quote out of the javascript manual.<!--content-->hmmm...manual must be old, or wrong...or maybe it's right, and browsers are just interpreting the code anyway...I don't really know (I'm not that great at js), but it works...and that's all I needed at the time :)<!--content-->it surprisingly does seem to resize my window, ie 5.5 :eek: <br />
another ie weakness :rolleyes:<!--content-->That code you gave me resizes it but it's just shrunk down and you can scroll around on it, I don't want this. Any ideas?<!--content-->then adjust these values<br />
<br />
onLoad="resizeTo(640,480);"<br />
<br />
or you will have to make a popup to take away the srollbars.<!--content-->
 
Back
Top