Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:21 AM
SoloCDM
Guest
 
Posts: n/a
Default Keeping Web Page at Fixed Width

Is there some kind of Javascript that will keep the web page at a
fixed width?

************************************************** *******************
Signed,
SoloCDM

  #2  
Old July 20th, 2005, 11:21 AM
Lasse Reichstein Nielsen
Guest
 
Posts: n/a
Default Re: Keeping Web Page at Fixed Width

SoloCDM <deedsmis@aculink.net> writes:
[color=blue]
> Is there some kind of Javascript that will keep the web page at a
> fixed width?[/color]

Yes. Don't do it, though. If a page tried crap like that on me,
it would be gone before it could say onbeforeunload!

But, if you insist, here are some examples of what not to do:

window.onresize = function(){
var root = document.documentElement||document.body;
resizeBy(800-root.offsetWidth,0);
}

(not all browsers have an onresize event, nor an offsetWidth, so
you must say which browser(s) you need the solution for)
Or:

setInterval(function(){
var root = document.documentElement||document.body;
resizeBy(800-root.offsetWidth,0);
},100);

/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles