How can I adjust the transparency of a Java applet to display content behind it?

I have a webpage with an applet inside. This applet is the target for drag and drop from the OS, I just take the image from the folder, drag it to the applet and something happens.

I give this web page to a graphic designer and he asks if he can put the image behind a java applet so that he can simulate to change the background using CSS (this skin application and graphic design can change at runtime).

Practically I had to do:

<div>
    <applet width="50" height="50" />
</div>

with this CSS:

div {
    width:50px;
    height:50px;
    background-image: url(image.jpg) center center no-repeat;
}

But this does not work (the background is opaque).

Can I adjust the transparency for the applet without losing the ability to drag and drop?

I am looking for something similar to the flash wmode parameter .

CSS/HTML java, Java.

0
3

URL- Javascript , , .

+2

, - , -, . , , , , , .

+1

You can try to put your applet code in a tag <td> <table>and set the property of background-colorthis <td>to the desired color, the applet will be displayed only under this color.

0
source

Source: https://habr.com/ru/post/1746276/


All Articles