自定义的BANNER广告条 JAVAApplet(0 篇回复 731 浏览)
Strobe
Description:
The backgroundcolor fades away and reveals the text. To get the real
fading effect you need to be able to see more than 256 colors.
Configuration:
* "font" ("Helvetica", "TimesRoman", "Courier", "Dialog", "ZapfDingbats") The
font type.
* "fontsize" (integer number) Font size.
* "bold" ("yes","no") If the text style should be bold or not.
* "italic" ("yes","no") If the text style should be italic or not.
* "textdelay" (integer number) Time showing the text, in ms.
* "delay" (integer number) Sets the time for a single step, in ms.
* "fadesteps" (integer number) Number of fade steps.
* "resizeimages" ("yes","no") If the images should be resized to fit the applet window.
* "colorXX" (hexadecimal color value) The chosen colors the texts will have.
The colors will be looped through independently of the text-items and image-items, so feel
free to choose as many colors you want.
* "itemXX" (text) A message item.
* "imageXX" (text) An Image that will be displayed. Note that if you want a blank background
instead of an image then write "blank" as value. If you don't want any images it is enough
to write "blank" for "image0" and no other image name after that.
* "urlXX" (text) The URL that will be shown in the "target" window when clicked
on the "itemXX".
* URLs must be fully specified, as in: http://www.your_host.com/index.htm
not relative, as in: ./index.htm
* "target" ("_self","_parent","_top","_blank", "name of a frame") This sets the target
where the linked page should be loaded. If you use frames then write the name of the
target frame as value, but you can also choose between:
_self show in current frame
_parent show in parent frame
_top show in top-most frame
_blank show in new unnamed top-level window
Here is a sample HTML-configuration with recommended values:
〈APPLET CODE="strobeoscope.class" WIDTH=300 HEIGHT=150>
〈PARAM name="color0" value="ff0000">
〈PARAM name="color1" value="00ffff">
〈PARAM name="color2" value="000000">
〈PARAM name="color3" value="ff00ff">
〈PARAM name="color4" value="0000ff">
〈PARAM name="font" value="TimesRoman">
〈PARAM name="fontsize" value="30">
〈PARAM name="bold" value="yes">
〈PARAM name="italic" value="no">
〈PARAM name="delay" value="70">
〈PARAM name="textdelay" value="1000">
〈PARAM name="fadesteps" value="20">
〈PARAM name="target" value="_top">
〈PARAM name="resizeimages" value="yes">
〈PARAM name="item0" value="Strobe applet">
〈PARAM name="item1" value="Change colors">
〈PARAM name="item2" value="Change images">
〈PARAM name="item3" value="Add Links">
〈PARAM name="item4" value="Blank image displayed">
〈PARAM name="image0" value="cloud.gif">
〈PARAM name="image1" value="ocean.gif">
〈PARAM name="image2" value="blank">
〈PARAM name="image3" value="mountain.gif">
〈PARAM name="image4" value="No image here">
〈PARAM name="url0" value="http://www.interactiveserver.com.au/page1.htm">
〈PARAM name="url1" value="http://www.interactiveserver.com.au/page2.htm">
〈PARAM name="url2" value="http://www.interactiveserver.com.au/page3.htm">
〈/APPLET>
*****************************************************************************
In some applets, text, images or other objects can have a shadow or Shadow Displacement.
If used, you specify the distance between the text and the shadow in pixels.
Some applets will take Shadow Displacement a step further and ask you to define X-Position and Y-Position. "X" and "Y" positions are based on the Cartesian Coordinate system.
X-Position is the Horizontal distance, in pixels, between the text (or other object),
and the shadow.
Y-Position is the Vertical distance, in pixels, between the text (or other object),
and the shadow.
*****************************************************************************
The Delay parameter:
Where used, the Frame Delay, (or simply "Delay"), parameter is the time between two frames. Suppose you're looking at your television. The image you see is replenished every 20 milliseconds, so the Frame "parameter" for a television image should be 20 ms. This will yield an update frequency at 50 Hz, i.e. 50 images per second.
In this applet the default frame delay is about 100 ms, i.e. 10 images per second.
*******************************************************************************
Fonts:
One problem with Java applets is the fonts. Because Java is platform independent, the number of fonts is limited.
These fonts: ZapfDingbats, TimesRoman, Courier, Arial, Helvetica, Dialog and DialogInput
will work on all platforms.
The Font Size will be the size of the text in pixels. Note, that in Unix systems the maximum value of font size is 36 pixels. This means that values larger than that will be ignored. Also note that in some applets, having large font sizes may reduce the speed of the applet. Fonts can be bold or italic and you specify this by inserting yes or no in the required
parameter/value field.
*******************************************************************************
Images:
In some applets you must specify images and sounds in order to make them work.
*******************************************************************************
URL Links:
To specify a URL on the Internet, write http://www.yourhost.com/page1.htm (known as an absolute URL) and not just www.yourhost.com/page1.htm OR ./page1.htm
To specify a file in your hard disk, write file:///C:\MYCATALOG\hello.html and not C:\MYCATALOG\hello.html
If you do not fully specify the links, they will not work.
Applets using several text fields or file fields:
If you are specifying items in an applet dependent on several text fields or file fields, make sure that each field has the same number of rows. Suppose that you have a message applet. In it you specify the text messages and a URL for each message. If you delete one row in the text items field and forget to do the same in the URL field, the applet will not run.
>>>>>>>>>>>>>>>>>>>>
download the strobeoscopt applet>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
download the filt applet两个Applet都需要,且必须在一起<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<