what do you mean? the URL doesnt have the *WIDTH*x*HEIGHT* in it
anyway, someone on yahoo answers gave me this:
Code:
<script type="text/javascript">
var w = screen.width;
var h = screen.height;
// first satisfied if/else-if will abort the remaining test, so
// start with the largest width/height combination and
// work down to the smallest - note that all after the first
// are else-if, and the last is else
if ((w >= 1440) && (h >= 900)) {
loc = "http://kevin61292.007sites.com/biblebookcat-Highres1440by900.html
}
else if ((w >= 1360) && (h >= 768)) {
loc = "http://kevin61292.007sites.com/temp1.html
}
else if ((w >= 1280) && (h >= 800)) {
loc = "http://kevin61292.007sites.com/temp2.html
}
else if ((w >= 1280) && (h >= 768)) {
loc = "http://kevin61292.007sites.com/temp3.html
}
else if ((w >= 1280) && (h >= 720)) {
loc = "http://kevin61292.007sites.com/temp4.html
}
else if ((w >= 1152) && (h >= 864)) {
loc = "http://kevin61292.007sites.com/temp5.html
}
else if ((w >= 1024) && (h >= 768)) {
loc = "http://kevin61292.007sites.com/temp6.html
}
// default
// replaces if ((w >= 800) && (h >= 600)) but actually
// means ((w < 1024) && (h < 768)) as written
else {
loc = "http://kevin61292.007sites.com/test2.html
}
window.location = loc;
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
but it still doesnt work... all i want to is if someone comes to my website with 800x600 resolution, they wont have to scroll sideways, and if someone has 1440x900 (like me) they dont see the background image in the top left hand corner. i read online about this and they said to make a separate webpage for different resolutions. it that the only way?
i dont know php and very little Javascript, so is there a way to make the website look nice in a different resolution in HTML?