Hi All,
I am trying to get the screen size so that I can make the left and right columns the same as the screen when they are smaller than the screen. I found a small script that can get the screen size but is there anyway to get that variable into the css?
JS:
<SCRIPT>
if (navigator.javaEnabled()) {
var toolkit = java.awt.Toolkit.getDefaultToolkit();
var screen_size = toolkit.getScreenSize();
height = screen_size.height;
}
</SCRIPT>
CSS (in seperate page loaded at top of page)
#rightcol {
width:84%;
height: 600px;
margin-left:16%;
background: url("logo.png") no-repeat fixed center;
}
Thanks,
Jack
I am trying to get the screen size so that I can make the left and right columns the same as the screen when they are smaller than the screen. I found a small script that can get the screen size but is there anyway to get that variable into the css?
JS:
<SCRIPT>
if (navigator.javaEnabled()) {
var toolkit = java.awt.Toolkit.getDefaultToolkit();
var screen_size = toolkit.getScreenSize();
height = screen_size.height;
}
</SCRIPT>
CSS (in seperate page loaded at top of page)
#rightcol {
width:84%;
height: 600px;
margin-left:16%;
background: url("logo.png") no-repeat fixed center;
}
Thanks,
Jack