You are here: irt.org | BBS | Re: Frames - Yes or No [This BBS is closed]
Posted by Ed W on August 09, 1998 at 04:52:10:
In Reply to: Frames - Yes or No posted by John Beardsworth on August 09, 1998 at 03:02:51:
I tend to use frames on any pages that I make. The biggest problem they make is that of window size; many framed pages look appalling if the visitor has a different screen resolution than that of which the page was designed for, or if his window is not maximized.
It also sometimes depends on the browser they are using, as they have slightly differently sized portions of the windows in which the page is actually displayed.
If a page does look wrong in a different screen resolution, javascript can help to change it, for example by determining the visitors screen size by screen.height and screen.width and transporting them to a different page which would look right for them. However, this only works with version 4.0 browsers, so something like this would be right:
<script language="javascript">
function Transport (ht, wdth) {
window.location=wdth + "x" + ht + ".html"
}
function Version_Check () {
if (navigator.appVersion.substring (0,1) == 4)
{
Transport (screen.height, screen.width);
}
else
{
document.writeln ("You need Microsoft Internet Explorer 4 to view this site");
}
}
Version_Check ();
</script>
Follow-ups:
You are here: irt.org | BBS | Re: Frames - Yes or No [This BBS is closed]