Change applet loading image?

User 9196f8d4f5

08-10-2008 12:59:41

You all are doing great work! I would like to know if there is any way to change the image that appears while the applet is loading. Currently, it just says "loading" which is pretty bland. Thanks,

ChemAxon 7c2d26e5cf

08-10-2008 15:22:26

Quote:
You all are doing great work! I would like to know if there is any way to change the image that appears while the applet is loading.
Search this code sniplet in marvin.js:


Code:
// displays an image on the applet's canvas while applet is loading


var loading_image = "img/loading.gif";



Give the name the required image file for the loading_image variable.





There is an alternative solution: overwrite img/loading.gif with your own one. In this case, you do not have to modify marvin.js.