home *** CD-ROM | disk | FTP | other *** search
Wrap
***************************************************************** * * * Message(F1.0) * * Java Applet * * Written by Mark Qian * * * ***************************************************************** Message is a JAVA appelt written by Mark Qian. It displays user-specified scrolling messages with sound. Each piece of text message can be asigned a URL so that the corresponding URL will be opened when you click at the text message. It plays a user-specified sound(an au file) when mouse cursor moves over the applet area. One of Message's interesting features is that it can "talk" to other specified applets such as Ad. That is, when you move mouse cursor within Ad, Ad will ask Message to display the description about the picture displayed by Ad. Message is an AdWare at this time. PARAMETERS: ========== RegistrationCode - Code that enable following features speed - the speed of animation. talkto - Specify which applet to talk to animatemode - 0 always scroll messages. 1 scroll to a specified message when "talk" to others such as AD 2 stop scrolling when mouse cursor within AD switchcolor - 0 the background color will not be changed 0 the background color will be changed when switching messages withURL - Set to 1 if you like to open an URL when clicking at a message. Otherwise, you can set it to 0 and ignore on_click parameters. audiofile - the audio file that should reside in the directory where the applet resides. nText - Number of text messages text1... textn - Text messages (number of them should be the value of nText) on_click1 ... on_clickn - The URLs to be opened when corresponding message is clicked (number of them should be the value of nText) INSTALLATION: ============ If you are a webmaster or experienced person, just follow the brief instructions below. IMPORTANT: ========= ********************************************************************************* * * * If you are NOT familiar with Java applet installation an Unix environment, * * Please follow the detail instructions in * * * * http://ourworld.compuserve.com/homepages/mark_qian * * * * to install it. Don't try it youself. * * * ********************************************************************************* BRIEF INSTRUCTIONS (for experienced people only): ================== 0). Unzip MESSAGE.ZIP in your local machine (you had done this step). 1). Rename class files. Because PKUNZIP will extract the class file, message.class, to MESSAG~1.CLA, you have to RENAME the class file to message.class. NOTE: They are case sensitive. 2). Open TEST_MSG.HTM with your browser locally. If it works locally, go to next step. Otherwise, go to Mark's home page for detail instructions. 3). Try TEST_MSG.HTM online(Ignore this step if you think that you REALLY know what to do). - place message.class in the place you want in your server. (FTP program may change message.class to message.cla. Rename class file if needed). - place TEST_MSG.HTM and LAUGH.AU to the same directory - change access attributes of all the files above to readable(744) - Browse TEST_MSG.HTM from your local machine If it works, go to next step. Otherwise Go to Mark's page for instructions. 4).Use your own stuff - add following HTML statements into your HTML's body <center><FORM><table border = 2><tr><td ALIGN=center VALIGN=middle><center> <applet code="message.class" width=403 height=30 name="message"> <param name=RegistrationCode value="f1.0-32327"> <param name=speed value="10"> <param name=withURL value="1"> <param name=switchcolor value="1"> <param name=animatemode value="0"> <param name=audiofile value="LAUGH.AU"> <param name=talkto value=" "> <param name=nText value="5"> <param name=Text1 value="COOLSHARE is Mark Qian's home page where you can find the best screen savers in the world, FREE Java applets, Fun stuff for Webmasters, other fun places such as dating, friends, and more..."> <param name=Text2 value="FREE dating! Click me to find the one in your mind!! "> <param name=Text3 value="IBM up again!! Click me to watch your stock..."> <param name=Text4 value="Click me to send your friends FREE WWW cards. Design your own style!"> <param name=Text5 value="Come on. Take a break. Here is a piece of music...Click to hear"> <param name=on_click1 value="http://www.aimnet.com/~markqian/HOMEPAGE.HTM"> <param name=on_click2 value="http://www.ozchannel.com/chatsingles/chatsingles.html"> <param name=on_click3 value="http://www.secapl.com/cgi-bin/qs"> <param name=on_click4 value="http://www.warnerbros.com/postoffice/HTML/crd-loon.htm"> <param name=on_click5 value="http://brookmays.com/"> </applet></center></td></tr></table></FORM> </center> - replace parametes such as "on_click", "text", "audiofile" with your stuff. 5). If it works, enjoy it!! (If you like to do its hard-working author a favor, Drop him an LAUGH to let Mark know It runs OK). Otherwise, go to Mark's page for detail instructions of troubleshooting. Go Mark's Home Page(http://ourworld.compuserve.com/homepages/mark_qian") to see more exciting applets!