...tony
tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337
visit www.antiwrap.com to send long url emails to your friends!
-- dont mistake my perfection as arrogance
anonymous
-----Original Message-----
From: Nick Baker [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:18 PM
To: CF-Talk
Subject: Obtaining Browser Size
CF 5.0
I found the below _javascript_ function to determine the size of the
visitors
browser. I would like to extract the width to a CF variable for later
use.
Can anyone tell me how to do this or another method of obtaining this
info.
Thanks,
Nick
<SCRIPT LANGUAGE="_javascript_1.1">
var tool = java.awt.Toolkit;
var size = new
java.awt.Dimension(tool.getDefaultToolkit().getScreenSize());
var myWidth = size.width;
var myHeight = size.height;
if (myWidth >= 800) {
// User has 800 pixels or more of screen width.
window.open('about:', 'test_window', 'width=700,height=1000');
}
else {
// User has small screen width.
window.open('about:', 'test_window', 'width=400,height=200');
}
</SCRIPT>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

