![]()
![]()
The ImageScroll AppletDescription
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)
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>
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:
BGImageURL URL of background image file Required ScrollImageURL URL of scrolled image file Required Speed pixels to scroll the image left each step Optional XPos X position of top-left of scrolled image Optional YPos Y position of top-left of scrolled image Optinoal ImageWidth width of scrolled image Optional ImageHeight height of scrolled image Optinoal GoTo URL to Goto when applet is clicked Optional Outside of PARM tags HTML for those with non-Java browsers Optional
Web Deco Kit Page Shokwave Home Page