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


Partners & Affiliates











advertisement

iScroll Marquee Applet



Parameters
.
Sample of <APPLET> Code:
.
<applet code="iscroll.class" width="300" height="24">
..<param name="Notice" value="Applet by www.CodeBrain.com">
..<param name="Text" value="This is the text of the message the applet displays.">
..<param name="TextColor" value="#FFFF00">
..<param name="TextLinkColor" value="#00FFFF">
..<param name="VerticalBias" value="2">
..<param name="FontName" value="Courier">
..<param name="FontStyle" value="0">
..<param name="Link" value="http://www.codebrain.com">
..<param name="Target" value="_new">
..<param name="Speed" value="20">
..<param name="Pause" value="1000">
..<param name="BackgroundColor" value="#222222"> 
..<param name="MouseMode" value="1">
..<param name="StatusBarText" value="Applet status bar text goes here...">
</applet>
.
Notice Parameter - Required
<param name="Notice" value="Applet by www.CodeBrain.com">

The Notice parameter must be present, exactly, or the applet will display an error message.  A missing notice will not stop the applet from functioning, however.

.
Text Parameter - Required
<param name="Text" value="This is the text that will be shown">

The iScroll applet shows only one message.  The text of the message can be quite long, if needed.

.
TextColor Parameter - Optional
<param name="TextColor" value="#FF0000">

This is the color of the text of the message the applet will display.  The default is red, #FF0000.

.
TextLinkColor Parameter - Optional
<param name="TextLinkColor" value="#00FF00">

This is the mouseover link color of the message the applet will display.   The default is green, #00FF00.

.
FontName Parameter - Optional
<param name="FontName" value="Courier">

Java applets accept a limited number of fonts.  Use of fonts other than these may crash the applet.  Among the accepted fonts are: Dialog, Courier, TimesRoman, Helvetica, Symbol.  The default is usually Dialog.

.
FontStyle Parameter - Optional
<param name="FontStyle" value="0">

Font style is set numerically in this applet.  Do not use style names.  There are four styles.  The default is 0, plain.  These are the acceptable parameter values:

.........................0 = plain
.........................1 = bold
.........................2 = italic
.........................3 = bold italic

.
FontSize Parameter - None!  Please Read!
We knew you'd intuitively look for this parameter (we would, too.)  There is no such parameter for this applet. This applet autosizes the text into the applet space.  To change the overall size of the font, change the height= in the <applet> tag.  This applet works well with large sizes.
.
VerticalBias Parameter - Optional
<param name="VerticalBias" value="0">

This is strictly optional, but useful for fine adjustment of the vertical position of the text in the applet space. It is most frequently used with large fonts, which tend to appear a bit high in the frame.  The default value is 0; negative numbers are allowed.  Proportioning of the font is not affected.

.
Speed Parameter - Optional
<param name="Speed" value="25">

This sets the scrolling speed of the text.  Higher values produce slower scrolling.  The default is 25.  In general this need not be set; but you may wish to adjust it for smoothest scrolling.  Negative numbers violate fundamental cosmic rules.

.
Pause Parameter - Optional
<param name="Pause" value="1000">

This sets the period of time the text will wait before it begins scrolling.  The value is in milliseconds, and the default is 1000 (that is, 1 second).

.
MouseMode - Optional / *Required* to Activate Links!
<param name="MouseMode" value="1">

You must set this value to 1 for the link parameter to work.  As the applet is frequently used only for a simple marquee, the default value is 0 -- which deactivates linking.

.
StatusBarText - Optional
<param name="StatusBarText" value="This text will appear in the status bar...">

This sets the text that will appear in the status bar of the browser.

.
BackgroundColor Parameter - Optional
<param name="BackgroundColor" value="#000000">

This sets the background color of the applet.  #000000 is the default.

.
Link Parameter - Optional
<param name="Link" value="http://www.yoursite.com/page.html">

The Link parameter sets the link for a mouse click on the Text= message (above).  The Link parameter uses absolute paths, only, in full, explicit http:// format.  Be sure MouseMode is set to 1, or the link will not work.

.
Target Parameter - Optional
<param name="Target" value="_new">

The Target parameter sets the target for a mouse click on  the Text= message.  The Target parameter uses the same values as html for windows, for example:

....._new - opens a new window *
....._blank - also a new window *
....._self - loads in the same frame
....._top - opens in the same window

The Target parameter can also set the target to a frame in a frameset.  Use the name of the frame (exactly).

If the Target is not set, the default is _top.

[NB: * Netscape and Microsoft browsers interpret _blank and _new a little differently; test both.]
.

.
The CodeBrain.com iscroll.class applet is (c) 1999, 2000 by CodeBrain.com.  Redistribution or resale of this applet is strictly forbidden.  All responsibility for use of the applet remains with the user.
Back to iScroll

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.

 Microsoft Visual Studio 2010 Showcase
 Avaya Developer Showcase
 MSDN Spotlight
 PHP for Windows Showcase
XML error: undefined entity at line 39
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%.

Windows 7: From Beta to Final Code in One Year
Google Shows Off Chrome OS, Releases Source
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?
Fedora 12 Takes Aim at Linux Networking
Top Supercomputer Nearly Doubles in Speed
Fedora 12 Linux Tackles Virtualization
Apple Gives iPhone Developers App Status Tracker
Novell Sets OpenSUSE 11.2 Free

Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Exploring HTML 5's Audio/Video Multimedia Support
Overriding Virtual Functions? Use C++0x Attributes to Avoid Bugs.
Understanding the Cloud Computing Security Vulnerabilities
Cisco and IBM Target a Greener World
Upgrade to Visual Studio 2010 with the Ultimate Offer

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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs