Shokwave Software, Inc. -      Web Deco Kit

The ImageScroll Applet

Description

The ImageScroll applet scrolls an image through another image from right to left. It is most usful in creating "banner" type advertisements or small, informative fields. ImageScroll is written so that it will look for the images it loads inside the same folder the applet loads from. By varying the parameters, you can create a variety of effects. You may optionally supply a URL that the applet will tell the browser to load when clicked. Size: about 3,900 bytes

Examples

(for each example on the left, the HTML that generated it is on the right)

Sorry, your browser does not support Java, so you can't see this applet in action.

By keeping the graphic background in tune with the page background, the image blends into the rest of the page. Note that moving the cursor over the flashing message shows a URL in your browser's status line. Clicking the flashing message will take you to that URL. The exmaples on this page are small, to make them fit along with the HTML, but they may be much larger in normal use.


<APPLET CODE="ImageScroll.class" CODEBASE="Java"
     WIDTH=180 HEIGHT=100 ALIGN=middle>
<PARAM NAME="XPos" VALUE=10>
<PARAM NAME="YPos" VALUE=58>
<PARAM NAME="ImageWidth" VALUE=160>
<PARAM NAME="ImageHeight" VALUE=41>
<PARAM NAME="Speed" VALUE=6>
<PARAM NAME="Background" VALUE=255,255,255>
<PARAM NAME="BGImageURL" VALUE="jib.gif">
<PARAM NAME="ScrollImageURL" VALUE="jibitems.gif">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see this applet in action.
</APPLET>

Sorry, your browser does not support Java, so you can't see this applet in action.

Of course, the scrolling image can be completely inside the background image. The animals go by pretty fast in this example, we could set the Speed paramter to something smaller and slow them down.


<APPLET CODE="ImageScroll.class" CODEBASE="Java" 
     WIDTH=170 HEIGHT=120 ALIGN=middle>
<PARAM NAME="XPos" VALUE=79>
<PARAM NAME="YPos" VALUE=60>
<PARAM NAME="ImageWidth" VALUE=87>
<PARAM NAME="ImageHeight" VALUE=56>
<PARAM NAME="Speed" VALUE=8>
<PARAM NAME="Background" VALUE=255,255,255>
<PARAM NAME="BGImageURL" VALUE="pcz.gif">
<PARAM NAME="ScrollImageURL" VALUE="animals.gif">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see this applet in action.
</APPLET>

Parameters

The BannerScroll applet takes the following parameters:

BGImageURLURL of background image fileRequired
ScrollImageURLURL of scrolled image fileRequired
Speedpixels to scroll the image left each stepOptional
XPosX position of top-left of scrolled imageOptional
YPosY position of top-left of scrolled imageOptinoal
ImageWidthwidth of scrolled imageOptional
ImageHeightheight of scrolled imageOptinoal
GoToURL to Goto when applet is clickedOptional
Outside of PARM tagsHTML for those with non-Java browsersOptional



Web Deco Kit Page     Shokwave Home Page