PDA

View Full Version : autoresize image in .class


JohnnyJacob
12-04-2006, 10:56 PM
I am using the lake.class. The .class file is working just fine, however, I would like to do a feature that can be done in normal HTML.

In regular HTML, you can set an image width and height to a %. When an image can fit across a site, I like to set its width to 100%. Now, in the lake.class is the following coding:


<applet code="lake.class" width="800" height="455">
<param name="period" value="25">
<param name="frames" value="20">
<param name="image" value="ban1.jpg">
</applet>


I tried setting the width in the "applet code" to 100%. All that does is "extend" the applet box. It does not actually expand the image the full width of the screen. I have even tried adding, width="100%" under the image param name. I want the image and applet to be 100% of whatever a person's screen is.

ronaldb66
12-05-2006, 08:52 AM
This likely would need to be taken care of in the applet itself, making this a Java question; do not cross-post, I'll request a moderator to move it to the appropriate forum.

Aradon
12-05-2006, 04:17 PM
El' Ronald is right. Things such as picture size, applet size and the like would have to be taken care of in the applet itself while the actually appearance of the applet would be taken care of in the html file.