Results 1 to 2 of 2

Thread: How to set image width in script?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question How to set image width in script?

    Hi everyone,

    I have the following line in my script and I want to set the width of it. Can someone show me how to do this with the code below?

    Thanks!!!

    Code:
    	document.getElementById('cmr').src = "pic.jpg?"+t;

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: How to set image width in script?

    Got it. I used the style and set the width to 100% and the height to auto to keep the aspect ratio.

    Warren

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