opening a site toa specific size

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 2nd, 2003, 23:22
New Member
Join Date: Dec 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old Dec 3rd, 2003, 01:30
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
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 (permalink)  
Old Dec 3rd, 2003, 02:21
New Member
Join Date: Dec 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the info... what is ecmascript??

AB
  #4 (permalink)  
Old Dec 3rd, 2003, 02:26
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
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 (permalink)  
Old Dec 3rd, 2003, 04:53
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old Dec 3rd, 2003, 05:19
New Member
Join Date: Dec 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old Dec 3rd, 2003, 06:21
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
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 (permalink)  
Old Dec 3rd, 2003, 07:59
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old Dec 3rd, 2003, 08:05
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old Dec 3rd, 2003, 08:14
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #11 (permalink)  
Old Dec 3rd, 2003, 08:18
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)  
Old Dec 3rd, 2003, 13:17
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gwx03
Having your browser resized isn't exactly polite.. but I wouldn't mind
  #13 (permalink)  
Old Dec 3rd, 2003, 14:52
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Closed Thread

Tags
opening, site, toa, specific, size

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 02:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43