This is a discussion on "opening a site toa specific size" within the Web Page Design section. This forum, and the thread "opening a site toa specific size are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
opening a site toa specific size
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
opening a site toa specific size
Hi:
I have a website that I want to open to a specific size when a user goes to it. For example, when someone types the url in their browser, and my index.html page opens, is it possible for it to reset the browser size to something like 800x600. I am not talking about a popup or new window from a link, rather my index.html page. Any help is appreciated - AB |
|
|
|
#2
|
|||
|
|||
|
You can do this using ecmascript easily by using the script below :
window.resizeTo(800,600) If, however, you want to acheive a fullscreen, you may want to do this... function resize() { window.resizeTo((screen.availWidth),(screen.availH eight)); window.moveTo(0,0); } Do not forget to add the script language html tags! |
|
#3
|
|||
|
|||
|
Thanks for the info... what is ecmascript??
AB |
|
#4
|
|||
|
|||
|
Oops... I used the wrong term...
ECMAscript is not a scripting language, but a scripting language specification used by many scripting languages... like javascript. The code I posted was done in javascript. The tags are as follows : <SCRIPT language="Javascript"> //your code here </SCRIPT> |
|
#5
|
|||
|
|||
|
Umm... just a little advice to ya... This is not a very much liked thing and is one of the things that is good to avoid. Go for it if you really want it, just know there are other ways of accomplishing the same effect without messing with browser size.
|
|
#6
|
|||
|
|||
|
Hi Kluegamr....
What other methods? The reason for wishing to do this is the site I am working on uses links to affiliate pages.. if I display the site centered, the affiliate pages are aligned to the left... If I align my site and related frames to the left, the affiliate pages align perfect, but the site does not look good if opened fullscreen.. only because it has some blank space at the right side..however; it looks great if the browser is a certain size... :-) |
|
#7
|
|||
|
|||
|
Frames are not very well liked too! Well, my advice is to either do your site in tables or just use layers/div tags to position your content. If you still want to use frames, I can't stop u, but you have to know that many people simply hate frames!
|
|
#8
|
|||
|
|||
|
i would rather have frames than have someone resize my browser window, this really annoys me and any site that does it will only ever get 1 visit from me.
|
|
#9
|
|||
|
|||
|
I'll second Smokies opinion, it would only get 1 visit from me.
Why not have a graphic load on the main browser window (with your site logo), and have a popup (automatic) open to the size you want with your website content? One drawback of using this method though is if people have popup killers on it may not work for them. HTH u2o |
|
#10
|
||||
|
||||
|
Most pop up killers allow pop-up that open as a result of clicking a link directly (I know the google toolbar one does)
I would much rather get a pop-up, than have my browser messed with.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#11
|
|||
|
|||
|
I agree with you all.. but my pop up blocker doesnt allow such things... I have to press special buttons to do so. I just suggest that you let it have space on the right. Many great sites do.. For example.. MSN. It has space, yet still looks good. Also, I dont see anything wrong with going from a cenetered site to a left aligned site. shouldn't be a problem unless the layouts are identical.
|
|
#12
|
|||
|
|||
|
Having your browser resized isn't exactly polite.. but I wouldn't mind
|
|
#13
|
|||
|
|||
|
An important thing, if you are using popups is to tell the user so. Just having a link or automatically popping a window is plain old bad as some people will see the window and just close it before it loads, partly because they associate them with adverts and also because most people don't like popups.
Opera silently blocks popups... as do many other browsers and popup blockers. So tell us about it! It's more polite and it gives the user a choice. |
![]() |
| Tags |
| opening, site, toa, specific, size |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Asp not opening! | aspcam | Classic ASP | 2 | Jul 26th, 2007 22:38 |
| Loading specific flash movies for specific pages | koonkle | Flash & Multimedia Forum | 3 | May 22nd, 2007 17:23 |
| Opening a specific report by matching user input to report ame | autoIT | Databases | 2 | Apr 26th, 2007 17:32 |
| problem with opening IE | uddin | Web Page Design | 5 | Mar 29th, 2007 15:26 |
| Can I set my page to be a specific size on every browser? | Inkers | Web Page Design | 9 | Jan 14th, 2007 11:03 |