A new one... on some OS's you can't drag the window offscreen, making any toolbars a problem. This one uses your screen's width, but sizes down the height. <script type="text/javascript"> function getResolution() { var heights = new Array('480','600','624','640','720','768','800','864','900','960','1024','1050','1080','1152','1200','1280','1392','1400'); var w = screen.width; var h = screen.height; var yourRes = w + 'x' + h; var hIndex = heights.indexOf('' + h + ''); if (hIndex < 0) { alert('Your resolution is ' + yourRes + ', however the VPN is not setup for it. Please contact the x department with this information and they will add it. You can continue using the default resolution if you wish.'); } else { var dSize = 0; var heightArrayIndex = heights.indexOf('' + h + ''); var nextArrayIndex = heightArrayIndex - 1; while (dSize < 79) { var heightSize = heights[heightArrayIndex]; var newSize = heights[nextArrayIndex]; dSize = heightSize - newSize; nextArrayIndex--; } document.write('<param name="geometry" value="' + w + 'x' + newSize + '">'); } } </script> <applet code="com.elusiva.rdp.applet.RdpApplet.class" codebase="<< CODEBASE >>" archive="JavaRDP14-1.1.jar" width="640" height="480" name="ElusivaRDP" align="top"> <param name="code" value="com.elusiva.rdp.applet.RdpApplet.class"> <param name="codebase" value="<< CODEBASE >>"> <param name="archive" value="JavaRDP14-1.1.jar"> <param name="cabbase" value=""> <param name="name" value="ElusivaRDP"> <!-- <param name="align" value="top"> --> <param name="username" value="<<USER>>"> <param name="Server" value="<<HOST>>"> <param name="Port" value="<<PORT>>"> <script type="text/javascript">getResolution();</script> </applet>
... View more