In this example the possibility to add a custom splash screen image will be discussed.
While the applet is loading, the specified image is shown as the splash screen.
All images supported by the ImageIcon class can be used as a splash screen.
Using animated gif files is not recommended because they can be displayed uncorrectly.
The splashScreenImage
parameter should contain the relative path to the image from the html code's path.
<script type="text/javascript" SRC="../../../marvin.js"></script> <script type="text/javascript"> <!--msketch_begin("../../..", 580, 480); msketch_param("splashScreenImage", "examples/applets/sketch/sampleSplash.gif"); msketch_end();//--> </script>
The next example is about using Hydrogen atom related properties.