MView applet with transparent background

User 5d01fe091c

23-06-2009 23:23:10

Hi All,


I have successfully used the transparency when creating a PNG image to display my structures, but I would prefer to use the MView applet if possible (to save me having to add my own context menus to my web page!) - Is this possible?


I've attached an image of what it looks like without the transparency and with (using images)


Many thanks


 


Ian

ChemAxon 7c2d26e5cf

25-06-2009 12:53:33

No, it is not possible. Applet is an opaque component.


I recommend to use transparent image and assign mouse listener to the image (refer to a javascript code in the onClick attribute of the image tag).


When the user click on the image substitute it to MarvinView applet with the proper structure.


After the applet is deactivated, put back a refreshed version of the image.


We use the same trick in our ajax example.


http://www.chemaxon.com/ajax/