LED JAVA Applet ------------------------ Part1 - the HTML File Part2 - the LED file The HTML File ---------------------------- You should be able to double-click on "LED.htm" and your browser should view it properly !! NO MATTER WHERE YOU PLACE IT ON YOUR HARD DRIVE - SO LONG AS THE FOLDER NAME IS "LED" !!! However, once it is copied to a web you will ned to adjust the path of the codebas, since you HTML file will probably not be in the same folder as the JAVA files. YOU ONLY NEED THE 19 FILES IN THIS FOLDER - NOT ANYTHING IN THE EXTRA STUFF FOLDER !!! The other stuff in the subfolder is just for extra info. This LED sign, as is - worked fine on my site and on my hard drive. To set it up: 1) copy the LED folder to FrontPage. 2) open up "LED.html" and copy the code to your web page. 3) adjust the Path - you only need to set one path - the codebase. After that the applet knows where to find it's files. Remember, that Internet web paths use the forward slash as a separator between directories (DOS and Windows use a backslash). 4) Testing - with your Web browser - make sure to refresh the web page each time you test - you may need to actually restart your browser. 4) edit the Message File, lifeson.led - the file is already set up for use. Just edit the text IMPORTANT - the "Codebase=" statement declares the path where the JAVA files reside. Therefore the browser then knows where to find all the JAVA files and the code= statement does not require a path (in fact it will fail if you put in a path). However, the other two files - the led and font files - are a core part of the JAVA applet but are not "JAVA" files. They are parameters, and therefore must include a path so that they can be located. The HTML Code ----------------------- Here is the code that has the applet working on my Hard Drive, where the HTML file and the two parameter files are in the same folder as the JAVA files : OR, since the HTML file is in the same folder as the JAVA files: The following HTML code worked on my own website. I used my index.htm file for the HTML codes, and the JAVA files were stored in \LED (the folder, "LED" was at the root of my web). Since the HTML file is at the root and the JAVA is one folder below that - the three path statements in the code are all the same, simply "LED/" : ( can also use: codebase=/LED/ ) Troubleshooting You may have tinker with the paths. IF ALL ELSE FAILS, INCLUDE THE ENTIRE HTTP URL PATH !!! Part2 - the LED File -------------------------- The LED file, "lifeson.led" is the message file. The applet refers to it for the message and how that message will be displayed. There are various features for special displays other than the standard scroll, such as blinking, drop-downs, and fades. Here is a working LED file - we discuss it below: NOTE: there are actually only 3 possible speeds (delay). For a faster but readable scroll speed, use "delay=5" - this is necessary with the "Size 1" LED sign, since it is so wide. The fastest speed is unreadable, so do not use delay=0 through 4. !! the script Do ScrollDown delay=30 center=true text=\rInFo \oC\ye\gLL\ba\yr Sleep delay=1500 ScrollLeft delay=20 startspace=20 endspace=20 text=\yTime is \{tt} on \{mn}-\{dn}-\{yy}. ScrollLeft delay=20 startspace=1 endspace=100 text=\gWelcome . . . let's get started ! ! ! Appear center=true URL=http://www.mindspring.com/~lifeson text=\y*\b*\g* \oI\yN\gF\bO \yC\bE\gL\oL\gA\yR\g*\b*\y* Sleep URL=http://www.mindspring.com/~lifeson delay=500 Blink times=3 delay=500 URL=http://www.infocellar.com ScrollDown delay=70 center=true text=\y*** \gC\yO\rM\yP\oU\gT\yE\yR \oU \y*** Sleep delay=2000 Pixel delay=10 pixels=15 clear=true Sleep delay=1000 Repeat times=10 Explanation: code is case sensitive !! any line with "Appear text=" will simply display text. The text will just sit there until some other code tells it to move. colors are controlled by the backslash followed by the initial of that color: \g =green, \y=yellow, \r=red, \b=blue, \o=orange the URL's (optional) will be followed if the user clicks the LED at the time that particular text is being displayed Comments begin with !! ScrollDown - this is a drop-down of the text, and the next line is a delay, and then it automatically does a standard scroll-off to the left ScrollLeft - this is the standard scroll from right to left Appear Center - centers the text