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


Partners & Affiliates











advertisement


Advanced News Scroll


The following instructions describe the meaning of the available parameters for this applet:


ParametersValue
<applet code="advnewsscroll.class" width="170" height="200">The applet tag identifies the location, class file name, and size of a Java applet. The first part of the tag code=advnewsscroll.class, identifies the name of the Java applet. The second and third part of the applet tag identifies the width and height of the applet (usually measured in screen pixels).
<param name="info" value="Applet by Gokhan Dagli,japplets.tripod.com">Information about the Advanced News Scroll Java applet. The info parameter must be included for the applet to run. It is case sensitive, and the number of spaces between words must be identical.
<param name="regcode" value="">Registration code (if you have it). In the "regcode" parameter, place the registration code you purchased from us. You have to pay small amount of money and receive your registration code (regcode). Click here for buying regcode. You can use the applet freely to enhance your web pages (commerical or non-commerical). However, I placed a status bar message that will appear when the applet is online on a site and regcode parameter isn't correct. You can buy the registration code using a credit card through Regnow secure server. It also accepts Checks and Money Orders through postal mail.
<param name="input_text" value="from_parameters">"from_parameters" or "from_file".
Example2 and Example3 read text from file.
<param name="text_file" value="">The name of the text file that contains the text to be vertically scrolled. The file must reside in the same directory as the Java applet.
Example2 and Example3 read text from file.
<param name="scroll_mode" value="scroll">"page" or "scroll".
Example4 uses page mode. Click here to see.
<param name="bgimage" value="b15.jpg">The file name of a GIF or JPEG image that will be drawn behind the scrolling text. The file path is based starting with the directory in which the Java applet is located. If you don't want to use backgroung image, please use this tag like this:
<param name="bgimage" value="">
Example3 doesn't use background image. Click here to see.
<param name="image_xposition" value="0">Horizontal position of the background image, in pixels.
<param name="image_yposition" value="0">Vertical position of the background image, in pixels.
<param name="bgcolor" value="000000">Background color, in hexadecimal RGB format.
<param name="title_color" value="ffcc00">Color of the titles, in hexadecimal RGB format.
<param name="text_color" value="ffffcc">Color of the text messages, in hexadecimal RGB format.
<param name="highlight_title_color" value="80a0d0">This parameter will change the color of the titles to the specified color when your mouse moves over the applet. This will only occur if there's an associated URL for the current text. You must use hexadecimal RGB format.
<param name="highlight_text_color" value="50b5f0">This parameter will change the color of the text message to the specified color when your mouse moves over the applet. This will only occur if there's an associated URL for the current text. You must use hexadecimal RGB format.
<param name="title_align" value="left">"left", "center",or "right".
This tag identifies alignment of the title messages. Can take one of these three values: "left", "center" ,or "right".
<param name="text_align" value="left">"left", "center",or "right".
This tag identifies alignment of the text messages. Can take one of these three values: "left", "center" ,or "right".
<param name="title_font_type" value="Helvetica">Name of the title font. Valid values are: "Helvetica", "TimesRoman", "Courier" and "Arial".
<param name="title_font_size" value="12">Size of the title font.
<param name="title_font_style" value="1">Style of the title font ("0"=plain, "1"=bold, "2"=italic, "3"=1+2=bold+italic)..
Example:
<param name="title_font_style" value="1">.
<param name="text_font_type" value="Helvetica">Name of the text font. Valid values are: "Helvetica", "TimesRoman", "Courier" and "Arial".
<param name="text_font_size" value="11">Size of the text font.
<param name="text_font_style" value="0">Style of the text font ("0"=plain, "1"=bold, "2"=italic, "3"=1+2=bold+italic)..
Example:
<param name="title_font_style" value="0">.
<param name="title_underline" value="no">"yes" or "no".
<param name="text_underline" value="no">"yes" or "no".
<param name="scroll_delay" value="30">This is the delay in milliseconds between redraws. In other words it represents the speed of the scrolling. The lower the number, the faster it scrolls.
<param name="pause" value="3000">This is the time, in milliseconds, the text should be waiting before scroll again.
<param name="border_thickness" value="2">Width of the applet border, in pixels.
<param name="border_color" value="d0d0a0">Color of the applet border, in hexadecimal RGB format.
<param name="left_margin" value="10">Margin at the left of the applet, in pixels.
<param name="top_margin" value="10">Margin at the top of the applet, in pixels.
<param name="right_margin" value="10">Margin at the right of the applet, in pixels.
<param name="bottom_margin" value="10">Margin at the bottom of the applet, in pixels.
<param name="vertical_space" value="24">To create a blank space to separate paragraphs. This controls how much space is between each paragraphs.
<param name="title_linespace" value="0">Space between lines of title texts, in pixels.
<param name="text_linespace" value="0">Space between lines of text, in pixels.
<param name="titleN" value="000000">Title of the text message. (N =1,2,3...,number of message). You must start at 1 and increase by 1 at each time.
<param name="textN" value=" ">Message body. (N =1,2,3...,number of message). You must start at 1 and increase by 1 at each time.
<param name="linkN" value="">The absolute and/or relative URLs.
<param name="target_frameN" value="_self">Target frame. Sometimes you want the URL to be opened in a particular frame or in a completly different window. Use this parameter to specify the destination of the URL to open.
</applet>The last part works like all other HTML tags and defines the end of the applet tag </applet>.


Text File Format

 
Title|Text|Link URL|Target Frame

Please do not forget putting "|" charecter between items. You have to use three "|" charecter each line.

Example2 and Example3 read text from file.


Getting Started

  • Place the class file (advnewsscroll.class) in the directory containing the HTML document into which you want to insert the applet (or into a different directory, and add the correct CODEBASE= attribute).
  • Add the applet tag to your HTML document in the position you want Advanced News Scroll Text Java applet to appear.
  • The info parameter must be included for the applet to run. It is case sensitive, and the number of spaces between words must be identical (entirely single-spaced). If you try to run the applet and you see the message "info parameter error", it denotes a problem with this parameter.
  • Java is case sensitive.


Linking to My Web Site

If you use unregistered version of this applet in your own website and you want to include a link to my homepage, you can use the images "sbn.gif" or "bbn.gif" and type this HTML code in your pages:


java applets

<a href="http://japplets.tripod.com/"><img src="sbn.gif" alt="java applets"></a>

java applets

<a href="http://japplets.tripod.com/"><img src="bbn.gif" alt="java applets"></a>

This is absolutely optional. I will be very happy if you do so.
Thanks.

Troubleshooting & Support

  • Please send me any questions, requests or remarks you might have to: quickshare@excite.com
  • Usually the easiest way to customize the applet is cut and paste the applet tag information used in the sample and modify it to fit your web page.
  • If you see a "class not found" message, this means what it says -- your browser can't find the .class files specified. You've forgotten to copy the .class file (advnewsscroll.class) to the necessary directory.
  • Make sure that your <APPLET> tag, closing </APPLET> tag, and all <PARAM> tags have < and > brackets. Check that the value for every parameter is enclosed between " signs.
  • If you see a NullPointerException displayed in the browser status-bar, it's most likely to be caused by a mistake in an parameter. Check it.
  • If the applet runs, but you can't make it do what you want it to do, please take another look at the documentation.

Back to Advanced News Scroller

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