#1 Animated image reflection:
Dancing Gerbils [Applet: lake]
This applet can be used on animated images or still images.
IMPORTANT: This is a different applet then the Lake.class file used in the other tutorial, but it follows the same instructions.
|
Take a plain animated image:
(from a free animated clipart site)
And transform it - give it a reflection:
|
1. Adjust image size:
Use a photo program to check pixel size. Width stays the same.
Height of image increased: multiply by 1.9 Ex: height is 48 44 x 1.9 = 91.2 = rounded to 91 pixels
Use your calculated height in the inserted HTML code
|
2. Insert the code: Insert > HTML NOTE: Items in red are changed to match yours
CSB User: Insert > HTML (same as Trellix Webgem) CSB User: still use ^GEMDIR in code!
<applet code="lake" codebase=^GEMDIR width=144 height=91>
<param name="image" value="^GEMDIR/gerbils.gif">
<param name="href" value="http://www.samisite.com">
</applet>
![]() |
3. Insert both files into Gem files (Webcomponent)
CSB User: Files for this component is same as Gem Files!
Make sure capitalization is same as you used in the code (step 2)!
4. Publish!
|
NOTE: if using frames, the link will load in current frame unless you add:
<param name="target" value="_top">
to open in a new window (added to variation 1), add:
<param name="target" value="_blank">
|
Add items in blue for a tight border around image:
<center><table border=5 cellspacing=0 cellpadding=0><tr><td>
<applet code="lake" codebase=^GEMDIR width=144 height=91>
<param name="image" value="^GEMDIR/gerbils.gif">
<param name="href" value="http://www.samisite.com">
<param name="target" value="_blank">
</applet></td></tr></table></center>
NOTE: Items in red are changed to match yours
|
# 2: Water layer over image
Bowling Lane Oil Slick [Applet: PoolMenu]
Before you go to the bowling alley, check to see just how oily the lanes really are!
Move cursor over the lane surface.
Download these files:
|
Take a plain image:
![]() And transform it - give it a watery layer on top:
I have this posted on a bowling league site
|
1. Download the 3 class files noted above. You can use the alley image or any JPG image.
|
2. Insert the code: Insert > HTML NOTE: Items in red are changed to match yours
CSB User: Insert > HTML (same as Trellix Webgem) CSB User: still use ^GEMDIR in code!
<center><table border=7 cellspacing=0 cellpadding=0 style="border-style:inset" ><tr><td>
<applet code="PoolMenu" codebase=^GEMDIR width=218 height=122>
<param name="image" value="^GEMDIR/blaneh.jpg">
</applet></td></tr></table></center>
|
3. Insert all four files into Webcomponent (Gem files)
CSB User: Files for this component is same as Gem Files!
Make sure capitalization is same as you used in the code (step 2)!
4. Publish!
|
# 3: Swirling Snow over image
Make a Holiday Card or seasonal statement for your site!
[Applet: alcsnow]
Photo donated by Willie Rissell for use in this sample.
Download this file:
These images were sent to me by friends in the north to remind me what I am missing in Florida (USA)
|
|||
A. Take a plain image:
![]() And transform it - give it a snowy layer on top:
|
B. Take a plain image:
![]() And transform it - give it a snowy layer on top:
(harder to see with too much white in image)
|
||
C. Yes....an animated image can be used under the snow overlay:
(Santa image came from a free gif site)
|
|||
1. Download the class file noted above. You can use the any JPG or GIF image.
|
|
2. Insert the code: Insert > HTML NOTE: Items in red are changed to match yours
CSB User: Insert > HTML (same as Trellix Webgem) CSB User: still use ^GEMDIR in code!
This is the code I used for the snowytrees (the car is the same except image name and size)
<center><table border=7 cellspacing=0 cellpadding=0 style="border-style:inset" ><tr><td>
<applet code="alcsnow" codebase=^GEMDIR width="346" height="221">
<param name="grph" value="^GEMDIR/4-03-trees.jpg">
<param name="snows" value="500">
<param name="threadsleep" value="50">
</applet></td></tr></table></center>
|
|
3. Insert the image and class file into the Webcomponent (Gem files)
CSB User: Files for this component is same as Gem Files!
Make sure capitalization is same as you used in the code (step 2)!
4. Publish!
|
This sample is different. The way the applet is written, it requires that you have the image in the SAME DIRECTORY on your web page. You must use FTP or file manager/control panel provided by your host to put the image on your website. You can not use CSB/Trellix to upload this image and get the applet to work.
1. Download the class file and image from this page:
http://javaboutique.internet.com/Rain/index.html
Start with the image they provide, then change to any JPG or TRANSPARENT GIF image you choose.
|
|
2. Insert the MODIFIED code: Insert > HTML NOTE: Items in red are changed to match yours
CSB User: Insert > HTML (same as Trellix Webgem) CSB User: still use ^GEMDIR in code!
<APPLET CODE="Rain" codebase=^GEMDIR WIDTH="380" HEIGHT="285" ALIGN="BOTTOM">
<PARAM NAME="gray" VALUE="500">
<PARAM NAME="angle" VALUE="1">
<PARAM NAME="back" VALUE="rain.jpg">
</APPLET>
|
|
3. Insert the class file into the Webcomponent (Gem files)
CSB User: Files for this component is same as Gem Files!
Make sure capitalization is same as you used in the code (step 2)!
4. Publish!
|