dcsimg
Dynamic Sizing of Applets with Javascript
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, April 9, 2001 01:19 PM

I'm using a java applet as a horizontal menu on a web page. I want to set the width to be the same as the client's window. I thought I was pretty close by using a function like this function resize(width) { menuapplet.width = width } ]]>]]> (document.documentElements.OffsetWidth)"> It seems to work (kind of) It refreshes the gray background of the java applet to be the correct size, but it looks like it doesn't "repaint" the menu. It stays small as if there wasn't a width declared at all. Please Help if you can.    More>>

I'm using a java applet as a horizontal menu on a web page. I want to set the width to be the same as the client's window. I thought I was pretty close by using a function like this






(document.documentElements.OffsetWidth)">

It seems to work (kind of) It refreshes the gray background of the java applet to be the correct size, but it looks like it doesn't "repaint" the menu. It stays small as if there wasn't a width declared at all.

Please Help if you can.

   <<Less
About | Sitemap | Contact