Ok.. now how do I get the screen size info to a hidden input (in a form) or send back to a cgi ?
I'm guessing as a hiiden input with in a form or as part of the link command, which calls the game.cgi?W=Wvar&H=Hvar "<p>" + "<A HREF='game.cgi?W= " + screensize . width + "$H=" screensize . height "'>click here</A>"+ "</p>" yes ?yes? did I do it.. I really don't know JS : ( just guessing... BTW .. thanks for your help! Lou. ----- Original Message ----- From: "Chasecreek Systemhouse" <[EMAIL PROTECTED]> To: "Luinrandir Hernsen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, November 04, 2004 8:27 PM Subject: Re: screen size... > On Thu, 4 Nov 2004 10:48:12 -0500, Luinrandir Hernsen > <[EMAIL PROTECTED]> wrote: > > It there a way to get the screen size info using perl? > > As a CGI, not really. Try: > > <blockquote><table border=3 bgcolor=#000000><tr><td> > <script> > toolkit = java . awt . Toolkit . getDefaultToolkit (); > screensize = toolkit . getScreenSize (); > document . writeln > ( > "<p>" + > "You screen is " + screensize . width + " pixels wide." + > "</p>" > ); > document . writeln > ( > "<p>" + > "You screen is " + screensize . height + " pixels tall." + > "</p>" > ); > </script> > </td></tr></table> > </blockquote> > > > HOWEVER, The remote client must have JS enabled and have Java installed =/ > > -- > WC -Sx- Jones > http://youve-reached-the.endoftheinternet.org/ > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>