Results 1 to 2 of 2

Thread: Basic Background Javascript

  1. #1
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Basic Background Javascript

    Alright well since i've searched forever and cant find an answer to my basic question I decided to post here, im sure someone out there can help me. I am very new to Javascript and have a basic understanding of how to read the code, but when it comes to making one from scratch I still have some troubles. Anyway, onto the problem.

    I have a site where I would like the background image to be scaled to match the users width and height. I figured it would be easier just to take a large 1600 x 1200 image and somehow make Javascript resize it using the document.write.background code and then telling it to match the .width and .height of the user's screen.

    Hope someone understands what im trying to do and can help me out! I know im a total 'noob' when it comes to this but you gotta start somewhere

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Unwise and probably impossible. Keep your background images under 10K as a courtesy to dial up connections.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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