PDA

View Full Version : Resolution Auto Sizing


webhost
12-31-2001, 02:27 AM
Building a new website, trying to get it to auto size for the different resoultions, Can anyone help with this, the header is in flash the rest is php. Website can be seen Here (http://www.radhost.com)

Hope someone can help with this.

Lesane
12-31-2001, 10:38 AM
On my old site i made 2 pages, one for 800x600 and one for 1024x768 and then i used this for index.html(in the head):

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function redirectPage() {
var url640x480 = "herewebsite800.html";
var url800x600 = "herewebsite800.html";
var url1024x768 = "herewebsite1024768.html";
var url1280x1024 = "herewebsite1024768.html";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else if ((screen.width == 1280) && (screen.height == 1024))
window.location.href= url1280x1024;
else window.location.href= url640x480;
}
// End -->
</script>

Hope this helps :)

Stasik
12-31-2001, 11:14 AM
as i see it is resizing

webhost
01-01-2002, 03:27 AM
We have it auto sizing when someone opens a full window view at any resolution, problem is when say somebody minimize;s to half size window then it does not auto resize any way to do this?
The header is flash and the rest of the page is php. When u look at site once there hold down ctrl key and click refresh, should see proper window and minimize to half size and u will see what Iam trying to accomplish.

UPDATE FIXED