Results 1 to 2 of 2

Thread: Setting Width Based on screen size

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    492

    Setting Width Based on screen size

    I have a javascript application where I am setting the wide of a scroller:

    var scrollerwidth=600

    how can I set this width to be the size of the window, it works fine but when I go to a bigger resolution, it doesnt scroll from edge to edge. How would I go about setting that.

    Thanks for your help

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Setting Width Based on screen size

    document.body.offsetWidth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width