Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Javascript for Formatting Image Size to Browser

    Does any one have the javascript code for formatting an Image to the size of the browser when resized? I found one code on a website, but it had a huge advertisement stuck in the javascript that I couldn't figure how to remove. I just want my image graphic on my index page to fit the browser when resized.


    Hope someone can help!

    Thanks so much in advance.

    -distortureddoll

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, here's a script you may be interested in having a look at:

    http://www.dhtmlshock.com/image-effe...ge/default.asp

    Is that what you were looking for?
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Kind of... but...

    Well, that would be perfect...but the image that i want to fit in the browser is a sliced image in tables.. so I can't add <img src="image.gif"> in the code line. Any suggestions?

    -distortureddoll


  •  

    Posting Permissions

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