Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autostretch ?

Status
Not open for further replies.

lode

Programmer
Nov 8, 2001
208
BE
Hi,

I'm a newbie to dreamweaver.
Let's start very simple.
I drew a table, on top of that table i inserted an image.
The image has a width of 1003 pixels.
It looks good on a 17" monitor.
On a 15" monitor i don't want to scroll because the image is too large.
Is there a way to make it fit ?
I heard something about autostretch, but as i told you i'm a complete newbie to this.

Thanks.
 
monitor size has nothing to do with screen resolution. if the image is 1003px then nothing you can do when screen resolution is 800*600. You could create an asp page that detects screen width and redirects to a site set up for the relevant resolution. Code below redirects to either a 640 800 or 1024 page, but be aware that you will need to maintain 2 or 3 copies of the 1 site.

Code:
<script language=&quot;javascript&quot;>
if (window.screen){
  var thisWidth = screen.width;
  url_640 = &quot;640resolution.asp&quot;;
  url_800 = &quot;800resolution.asp&quot;;
  url_1024 = &quot;1024resolution.asp&quot;;
  if(thisWidth<740){
    self.location.replace(url_640);
  }
  if(thisWidth>=740 & thisWidth<835){
    self.location.replace(url_800);
  }
  if(thisWidth>=835){
    self.location.replace(url_1024);
  }
}
</script>

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks.
 
and another paste of the link:
@ lebisol lol

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top