Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Using javascript to force a resolution
Old 07-06-2007, 03:42 PM Using javascript to force a resolution
Experienced Talker

Posts: 45
Name: Tonyo
Trades: 0
Hey, I just had someone send me a picture of how my dads website (atriskstoriesofhope.com) loads up in firefox.



And here is how it loads up on my dads computer (Macbook pro running safari)



This is the script that I'm using to resize the website.

<script LANGUAGE="JavaScript" FOR="window" EVENT="onload()"><!--
//script by Oogle
//can only be used when running
//in 800x600 resolution

window.moveTo(0, 0)
window.resizeTo(780,613)
//-->
</script>
master_debator is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2007, 06:35 PM Re: Using javascript to force a resolution
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Simply put, you cannot force the browser window for firefox, except if the user accepted that the site can resize it for them.

I, for once, disabled everything I could in the javascript section.
Popups, moving & resizing of windows, disabling or changing mouse menus, and hiding or changing the status bar text.

And franckly, forcing your user to watch a site in a limited size is just plain wrong....
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 07-07-2007, 01:17 AM Re: Using javascript to force a resolution
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Tonyo I'm going to agree with Thierry on the resizing. It's not a good idea. I visited your site and it resized my browser. That means it's the last time I would ever visit your site.

My view on this and I think it's the view of many others is that you can do what you want inside the browser window. I expect when I visit your page that it will look different from the last page I was visiting. What you can't do is change anything outside that window. In this case you made my entire browser change. The a visitor that feels very much like you reaching though the web and touching my computer. It sets up mistrust with your site instantly.

What I would do for the site is simply center it so that no matter what resolution a visitor is using the page will sit in the center of the screen. If you need it to fit the full with of the screen you'd either need to recode the site so it's fluid or use browser detection and change the width of your site based on the resolution of the visitor.

Never change the visitors browser to fit your site. Change your site to fit the visitors browser.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Using javascript to force a resolution
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28406 seconds with 12 queries