I'm using JavaScript in a couple of places to allow me to define a screen size in forms (example below) but can I get this variable somehow into CF?
Eg, it the resolution is set to 800x600, the intro screen should only display 2 columns, if it is 1024x768 I can use three columns.
TIA
gm456
-
<SCRIPT LANGUAGE="JavaScript1.2">
document.write("<INPUT TYPE='TEXT' tabindex='6' NAME='resolution' size='5' value='"
;
<!-- Begin
if (screen.height >= 768 && screen.width >= 1024) {
document.write("6'>"
;
}
else {
if (screen.height == 600 && screen.width == 800) {
document.write("5'>"
;
}
else {
document.write("4'>"
;
}
}
// End -->
</script> [sig][/sig]
Eg, it the resolution is set to 800x600, the intro screen should only display 2 columns, if it is 1024x768 I can use three columns.
TIA
gm456
-
<SCRIPT LANGUAGE="JavaScript1.2">
document.write("<INPUT TYPE='TEXT' tabindex='6' NAME='resolution' size='5' value='"
<!-- Begin
if (screen.height >= 768 && screen.width >= 1024) {
document.write("6'>"
}
else {
if (screen.height == 600 && screen.width == 800) {
document.write("5'>"
}
else {
document.write("4'>"
}
}
// End -->
</script> [sig][/sig]