advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

MW6Message


Installation

 
Install following files in the same directory as your HTML file and set file permission correctly for Internet access 
  • message.class
  • conf.dat
All news information are stored in a file called "conf.dat",  this file format is pretty much like HTML format, you can use any text editor tool to generate this file,  in order to let applet parse it properly, this file must comply with some guidelines. Each news entry is defined by tags values and must be in the same line, namely, do not punch ENTER key in middle of news entry, any blank lines and lines starting with "<!" are skipped. Take a look at following sample "conf.dat" file. 

Sample "conf.dat" file

 
<!--This is a sample configuration file for message applet> 

<!-- Each news entry has three parts: caption, news content and URL link. There is at least one space between each part and news entry must be in the same line, URL link can be either relative to current codebase or absolute>

<news caption="MW6" content="MW6 is hometown of high quality and reliable applets" url="http://www.mw6tech.com/demo.html">

<news caption="Service" content="We provide free unlimited service to you" url="http://www.mw6tech.com/demo.html">

<news caption="Download" content="Download our evaluation version products for a try!" url="http://www.mw6tech.com/demo.htmlm">

<news caption="Order" content="Order our products either on-line or off-line" url="http://www.mw6tech.com/demo.html"> 


Applet parameters

 
Name Description
notice This  mandatory parameter must be explicitly included, otherwise message applet will not work. 

Usage:
<param name="notice" value="Copyright (C) 1999, MW6 Technologies"> 

license This mandatory parameter must be explicitly included, otherwise message applet will not work. 

Usage:
<param name="license" value="Demo"> 

window  Defines name of a frame or a window where links will be opened. There are 5 choices for this parameter 
  • "_self":  open page in current window
  • "_parent":   open page in parent window
  •  "_top":      open page in topmost window
  • "_blank":    open page in new unnamed top-level window
  • name: open page in a new top-level window called name 
Sample Usage:
          <param name="window" vaule="_self"> 
bgcolor Applet background color using RGB triplet of 3 decimal numbers in the range of 0-255. 

Sample Usage:
           <param name="bgcolor"  value="255, 0, 0">

bdcolor Applet border color using RGB triplet of 3 decimal numbers in the range of 0-255. 

Sample Usage:
           <param name="bdcolor"  value="255, 0, 0">

speed Text scroll speed (in milliseconds). 

Sample Usage:
           <param name="speed"  value="20">

mocolor News content color using RGB triplet of 3 decimal numbers in the range of 0-255 when mouse is over news content area,. 

Sample Usage:
           <param name="mocolor"  value="255, 0, 0">

delay Delay time between two news (in millisecond) 

Sample Usage:
           <param name="delay"  value="2000">

cap_font News caption font characteristic using triplet of font name, font style and font size. 

Sample Usage:
           <param name="cap_font"  value="serif, plain, 12">

cap_color  News caption color using RGB triplet of 3 decimal numbers in the range of 0-255. 

Sample Usage:
           <param name="cap_color"  value="255, 0, 0">

txt_font News content font characteristic using triplet of font name, font style and font size. 

Sample Usage:
           <param name="txt_font"  value="serif, plain, 12">

txt_color  News content color using RGB triplet of 3 decimal numbers in the range of 0-255. 

Sample Usage:
           <param name="txt_color"  value="255, 0, 0">


Sample Applet Tag in HTML file

<applet code="Hscroll.class" width="136" height="200">
        <param name="notice" value="Copyright(c) 1999, MW6 Technologies">
        <param name="license" value="Demo">
        <param name="bgcolor" value="0, 255, 0">
        <param name="bdcolor" value="0, 255, 0">
        <param name="mocolor" value="0, 255, 0">
        <param name="txt_color" value="255, 255, 255">
        <param name="txt_font" value="Courier, ITALIC, 14">
        <param name="cap_color" value="255, 255, 255">
        <param name="cap_font" value="Courier, ITALIC, 14">
        <param name="speed" value="55">
        <param name="delay" value="155">
        <param name="window" value="_parent">
</applet>

Back to the MW6Message applet page.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 IBM Software Construction Toolbox
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 33
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

IBM Gives a Mobile Voice to Developers
Inadequate Tools Send Software Down the Drain
USB 3.0 One Step Closer to Reality
Would-Be Linux Contributors May Get a Leg Up
SAP, Oracle Holding Out on Ubuntu?
GIPS Technology to Voice-Enable iPhone Apps
Citrix CTO Eyes the Future of Virtualization
The Pitfalls of Open Source Litigation
LiMo Open to Working With Google on Mobile
Google Gadgets Under Attack at Black Hat

The Guide to E-Mail Archiving and Management
Making XQuery Control Structures Work for You
Simplifying Composite Applications with Service Component Architecture
Overview: C++ Gets an Overhaul
Sharpening Your Axis with Visual Basic 9
Easier C++: An Introduction to Concepts
Simpler Multithreading in C++0x
Software as a Service Perceptions Survey - March 2007
Rackspace® Security
On Demand Media Technology Company Relies on The IT Hosting Leader to Provide Managed Microsoft Exchange

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers