F
Frane Roje
Hi,
I have a page that looks like this
<html>
<head>
<title>Testtitle>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<SCRIPT language="JavaScript">
<!--
function how_far() {
if( screen.width == 800 && screen.height == 600 ) return 0;
else if( screen.width == 1024 && screen.height == 768 ) return 150;
else if( screen.width >= 1280 && screen.height == 1024 ) return 250;
else return 0;
}
//-->
</SCRIPT>
</head>
How do I make it work. I don't know the exact syntax.
I just want the value of return of how_far() to be assigned to
cols variables.
<frameset rows="*" cols="javacript::how_far(),*" framespacing="0"
frameborder="NO" border="0">
<frame src="bez1.html" name="leftFrame" scrolling="NO" noresize>
<frame src="bez2.html" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
I have a page that looks like this
<html>
<head>
<title>Testtitle>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<SCRIPT language="JavaScript">
<!--
function how_far() {
if( screen.width == 800 && screen.height == 600 ) return 0;
else if( screen.width == 1024 && screen.height == 768 ) return 150;
else if( screen.width >= 1280 && screen.height == 1024 ) return 250;
else return 0;
}
//-->
</SCRIPT>
</head>
How do I make it work. I don't know the exact syntax.
I just want the value of return of how_far() to be assigned to
cols variables.
<frameset rows="*" cols="javacript::how_far(),*" framespacing="0"
frameborder="NO" border="0">
<frame src="bez1.html" name="leftFrame" scrolling="NO" noresize>
<frame src="bez2.html" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>