Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-27-2004, 10:33 AM   PM User | #1
Nonenone
New to the CF scene

 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Nonenone is an unknown quantity at this point
Resizing to a specified inner width

Hi

I have a document that I'd like to do the following with, can anyone help?

I'd like the window to resize onload to an innerwidth/height of 783px by 434px, so that all browsers will display the same screen space

The content inside is larger than that and I want people to scroll if they have their browser window open larger (sounds strange I know!).

I have used a standard - onLoad="resizeTo(783,434) - but it looks incorrect on netscape etc.

Any ideas?

Thanks
Nonenone is offline   Reply With Quote
Old 04-27-2004, 03:11 PM   PM User | #2
swmr
Regular Coder

 
Join Date: Feb 2003
Posts: 638
Thanks: 0
Thanked 0 Times in 0 Posts
swmr is an unknown quantity at this point
maybe something like: window.onresize = function(){resizeTo(783,434);}
__________________
hmm... ?
swmr is offline   Reply With Quote
Old 04-27-2004, 04:11 PM   PM User | #3
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
You could resize to a certain size, calculate the difference compared to the inner size, and resize again based on the results of that resize.

However, I believe a better choice would be wrapping the body in another element, to which you set those size limits, and let the user scroll that element instead.
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards
liorean is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:08 PM.


Advertisement
Log in to turn off these ads.