|
|
|
This is one in a series of applets called
Ghostdreamers applets. These applets are designed for
Halloween, but by no means limits you to making only Halloween
applets. You can use their images, or use your own for this
applet. This one requires that you use 4 images. I jused a jpg
for the background in this example, but you could use a transparent gif if
you like.
The background color can be changed by inserting the r,g,b
code for the color you want to use.The applet also
allows for sound to be played with it. However, you must use an au
file with streaming capabilities for it to work. I have uploaded
some of those to the files section at yahoo groups. I also am
uploading the zip filethat contains the gif files that they use, the
sniplets of code and the ghostdreamers.class file.
For Stationery Use:
<CENTER><APPLET
codeBase=http://your website addy/
code=ghostdreamer.class align=center width=360 height=270><PARAM NAME="backimage" VALUE="http://your website addy/applets/background image.jpg"><PARAM NAME="floatxxyy" VALUE="30,270,50,175"><PARAM NAME="floatmode" VALUE="3"><PARAM NAME="flyseparatemaxminroc" VALUE="15,15,0"><PARAM NAME="floatz" VALUE="2"><PARAM NAME="soundmode" VALUE="1"><PARAM NAME="flyimage" VALUE="http://your website addy/applets/floating images.gif"><PARAM NAME="frontimage" VALUE="http://your website addy/applets/front image.gif"><PARAM NAME="backxy" VALUE="0,0"><PARAM NAME="flyhowmany" VALUE="3"><PARAM NAME="floatspeed789" VALUE="15"><PARAM NAME="notice" VALUE="Applet by www.javacomet.com"><PARAM NAME="flyoscillatexxyy" VALUE="150,100,100,50"><PARAM NAME="timeconstant" VALUE="30"><PARAM NAME="flycenterxy" VALUE="200,100"><PARAM NAME="link" VALUE="http://your website link addy goes here.html"><PARAM NAME="backgroundcolor" VALUE="0,0,0"><PARAM NAME="flyspeedmaxminroc" VALUE="5,3,4"><PARAM NAME="flydirection" VALUE="1"><PARAM NAME="statusbartextm" VALUE="message goes here !"><PARAM NAME="soundfile" VALUE="http://your website addy/music/au file goes here.au"><PARAM NAME="frontxy" VALUE="0,145"><PARAM NAME="floatimage" VALUE="http://your website addy/applets/flying image.gif"><PARAM NAME="target" VALUE="_top"></APPLET></CENTER> For Websites Use : <CENTER><APPLETcode=ghostdreamer.class
align=center width=360 height=270><PARAM
NAME="backimage" VALUE="applets/background
image.jpg"><PARAM NAME="floatxxyy"
VALUE="30,270,50,175"><PARAM NAME="floatmode" VALUE="3"><PARAM
NAME="flyseparatemaxminroc" VALUE="15,15,0"><PARAM NAME="floatz"
VALUE="2"><PARAM NAME="soundmode" VALUE="1"><PARAM
NAME="flyimage" VALUE="applets/flying
images.gif"><PARAM NAME="frontimage" VALUE="applets/front image.gif"><PARAM NAME="backxy"
VALUE="0,0"><PARAM NAME="flyhowmany" VALUE="3"><PARAM
NAME="floatspeed789" VALUE="15"><PARAM NAME="notice" VALUE="Applet
by www.javacomet.com"><PARAM
NAME="flyoscillatexxyy" VALUE="150,100,100,50"><PARAM
NAME="timeconstant" VALUE="30"><PARAM NAME="flycenterxy"
VALUE="200,100"><PARAM NAME="link" VALUE="http://your website link addy goes here.html"><PARAM
NAME="backgroundcolor" VALUE="0,0,0"><PARAM NAME="flyspeedmaxminroc"
VALUE="5,3,4"><PARAM NAME="flydirection" VALUE="1"><PARAM
NAME="statusbartextm" VALUE="message goes here
!"><PARAM NAME="soundfile" VALUE="music/au file
goes here.au"><PARAM NAME="frontxy"
VALUE="0,145"><PARAM NAME="floatimage" VALUE="applets/floating image.gif"><PARAM NAME="target"
VALUE="_top"></APPLET></CENTER>
PARAMETERS TO CHANGE POSITIONING
Look where you see and x or y value such as for example "floatxxyy"
VALUE="30,270,50,175" or"backxy" Value="0, 0"
YOU CAN ALSO CHANGE the number of flying images INSERTING A SOUND (Optional) Look at the code and find the following parameter:
<param name="SoundFile" value="xxx.au">
Where it reads: value="xxx.au", insert your sound name in place of
the "xxx"
// The sound file MUST be a standard, JAVA .au file.
// Keep the sound file as small as possible, especially for sync mode. // The sound file can be set to trigger in three // different modes, as follows... // 1 = plays the sound only when the applet
opens
// 2 = plays the sound continuously (loop) // 3 = sync mode -- plays the file syncrhonized with FloatImage motion To set the Soundmode:
Look at the code and find the following parameter:
<param name="SoundMode" value="0">
Where it reads: value="0", insert the number of the mode(see
above)
you want to use in place of the "0" INSERTING A LINK (Optional)
A link to which the applet will send the browser when you click on the applet. Make sure you use the full path, as shown! Look at the code and find the following parameter:
<param name="Link" value="http://www.javacomet.com">
Where it reads: value="http://www.javacomet.com"
Insert the full path of the link in place of "www.javacomet.com"
You may also set a target for the link as follows... // Optional, used in conjuntion with the Link parameter above.
// This is in standard syntax -- _new, _top, etc.; or the name of // the target frame if you are using a framed layout. STATUS BAR TEXT ON MOUSEOVER (Optional) A text message the applet displays in the browser
status
bar whenever the mouse IS OVER the applet. Look at the code and find the following parameter:
<param name="StatusBarTextM" value="Fully Linkable:
Click!">
Where it reads: value="Fully Linkable: Click!"
Insert your text message in place of "Fully Linkable:
Click!" Copyright İFebruary, 2002 - All Rights Reserved. |