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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen Sizes

Status
Not open for further replies.

Jengo

Programmer
Apr 17, 2000
100
US
How do I determine the screen width so I can make an image the same size? Because I have an image that I want to go all the way across the screen, end to end, no extra space.
 
if the effect you wanna get is like a bar in the left you just have to make an image longer than the screen width, for example 1300px<br><br>it worked?
 
Here is how you get the values from the user's system:<br><br>&lt;script language=&quot;JavaScript&quot;&gt;<br>&lt;!--<br>function Getvalues(){<br>if (screen.availLeft) var l = window.screen.availLeft;<br>if (screen.availTop) var t = window.screen.availTop;<br>if (screen.availWidth) var w = window.screen.availWidth;<br>if (screen.availHeight) var h = window.screen.availHeight;<br><br>...CODE TO RESIZE THE WINDOW OR THE IMAGE.<br><br>}<br><br>l,t,w and h are variables that are assigned the values of the user's screen. availLeft and availTop are usually 0 and 0 unless the user has an Office bar in the right side.<br><br>I assume that since you are a programmer, you can write the code to resize your objects.<br><br>Have fun./ <p>Fernando Regueiro<br><a href=mailto:ferhelping@yahoo.com>ferhelping@yahoo.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top