Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Window resize

Window resize

Scheduled Pinned Locked Moved Web Development
tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Good day! How knows how to get the browser's window size. And one more - how to dynamicly change size of background picture. Thank you very much. Good luck!

    P M 2 Replies Last reply
    0
    • L Lost User

      Good day! How knows how to get the browser's window size. And one more - how to dynamicly change size of background picture. Thank you very much. Good luck!

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      Dimon007 wrote: How knows how to get the browser's window size You can use:

      window.screen.availHeight
      window.screen.availWidth

      to get the Windows available height and width. To change the size of a background picture you have to change the size of it's "container". i.e. If you have set the background image of a TD then you need to change the size of the actual TD. regards, Paul Watson Bluegrass Cape Town, South Africa "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge Sonork ID: 100.9903 Stormfront

      1 Reply Last reply
      0
      • L Lost User

        Good day! How knows how to get the browser's window size. And one more - how to dynamicly change size of background picture. Thank you very much. Good luck!

        M Offline
        M Offline
        mortrr
        wrote on last edited by
        #3

        Dimon007 wrote: How knows how to get the browser's window size. Sorry, you can't get the size of the window. What you can get, is the width and height of the clientarea. document.body.clientWidth document.body.clientHeight which will tell you how much space is available to your page. You can move and resize the window using window.moveTo and window.resizeTo methods (and window.moveBy and window.resizeBy). And one more - how to dynamicly change size of background picture. You can't resize background images. You'll need different images in different resolutions. - Morten

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups