----- Original Message -----
Sent: Monday, December 31, 2001 1:58
PM
Subject: plz help.........
hi all
iam trying to fit an applet into the browser
window based on the browsers available width and height......
for this i have coded in the following
manner........
<html>
<body>
<script
type="text/javascript">
var
w,h,availW,availH;
w =
window.screen.availWidth;
h =
window.screen.availHeight;
if(document.all)
{
availW =
document.body.clientWidth-40;
availH = document.body.clientHeight-40;
}else
{
availW =
innerWidth;
availH =
innerHeight;
}
</script>
<applet
code="Applet1" width=availW height=availH>
<param
name="UserName"
value="rajak">
</applet>
</body>
</html>
but the problem here is though the variables
availW and availH give me the required width and height but iam unable to use
them within the applet tag........
plz help as to how i can assign these variables
to the applets width and height attribues.........or kindly tell me if there
is any other way to do so.........
with rgds
Rajasekhar
*********************************************************
Disclaimer
This
message (including any attachments) contains
confidential information
intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message
and are hereby notified that
any disclosure, copying, or distribution of
this
message, or the taking of any action based on it,
is strictly
prohibited.
*********************************************************
Visit
us at http://www.mahindrabt.com