Hi 

Thanks for your all replies,

youngho

----- Original Message ----- 
From: Graham, Billy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 9:40 PM
Subject: Re: Client Display Size


> I use the code below to return the display height and width via hidden
> fields in a form.
> 
>   out.println("<html>");
>   out.println("<head>");
>   out.println("<title>Description</title>");
> 
>   file://Function to get Client document width and height
>   out.println("<SCRIPT language=\"javascript\">");
>   out.println("function getDims(Dim) {");
>   out.println("var height, width;");
>   out.println("if (document.all) height = document.body.offsetHeight, width
> = document.body.offsetWidth;");
>   out.println("else if (document.layers) height = window.innerHeight, width
> = window.innerWidth;");
>   out.println("if (Dim=='H') return height; else return width;");
>   out.println("}");
>   out.println("</SCRIPT>");
> 
>   out.println("</head>");
>   out.println("<body>");
> 
> < HTML STUFF GOES IN HERE>
> 
> 
>   // Get Client screen Width and Height
>   out.println("<SCRIPT>document.write('<INPUT TYPE=\"hidden\" NAME=\"sw\"
> VALUE=\"' + getDims(\"W\") + '\">');</SCRIPT>");
>   out.println("<SCRIPT>document.write('<INPUT TYPE=\"hidden\" NAME=\"sh\"
> VALUE=\"' + getDims(\"H\") + '\">');</SCRIPT>");
> 
> 
> 
> 
> 
> 
> Regards,   Billy Graham.
> 
> 
> 
> 
> 
> -Ashok
> 
> 
> -----Original Message-----
> From: Youngho Cho [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 10:14 PM
> To: [EMAIL PROTECTED]
> Subject: Client Display Size
> 
> 
> Hello,
> 
> Is there a way to know Client Browser Display Width and Height setting value
> for example 800x600 or 1024x768 etc...
> 
> Thanks
> 
> youngho
> 
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
> 
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> 
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
> 
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> 
�{.n�+���zw^�����b����ڽ�.��&jwb��nu觶��ܨ~�^��,j��       �}�ER�L�SL
܆+޲m��ڭ�b��#j���w(���r�z��z��zا��޲�m�T^���q�!���6�j˧r������l�ǫ�W���mz�ږ�����z�m�R�I4�EQޖ�m����
%���r�����j[?�ǫ���f

Reply via email to