Keeping Web Page at Fixed Width

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SoloCDM

    Keeping Web Page at Fixed Width

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

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

  • Lasse Reichstein Nielsen

    #2
    Re: Keeping Web Page at Fixed Width

    SoloCDM <deedsmis@aculi nk.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.docume ntElement||docu ment.body;
    resizeBy(800-root.offsetWidt h,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(fun ction(){
    var root = document.docume ntElement||docu ment.body;
    resizeBy(800-root.offsetWidt h,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.'

    Comment

    Working...