DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005

    Question Texticker problem


    I putted a java applet text ticker in my site, which I also saw here on this site. I previously mailed the author with my question, but I haven't got any reaction from him/her so now I'm trying here.

    It's the textticker with the X_TextTicker.class file with the code:

    <applet code=X_TextTicker.class name=X_TextTicker width=100% height=100% align="absmiddle" id=X_TextTicker viewastext>
    <param name="m4" value="test test test.">
    <param name="m3" value="hello world">
    <param name="m2" value="How are you doing? I'm doing fine.">
    <param name="m1" value="test test test">
    <param name="m0" value="hi hi hi hi">
    <param name="linecolor" value="FFFFFF">
    <param name="backcolor" value="62704C">
    <param name="rectangle_color" value="62704C">
    <param name="forecoloroff" value="FFFFFF">
    <param name="forecoloron" value="B8FD42">
    <param name="font" value="Arial|PLAIN|12">
    I was wondering how I can make an new line in ticker. For instance the M2 = First line: How are you doing?
    Second line: I'm doing fine.

    The signs <br> or /n all doesn't seem to werk, a normal enter neither.
    Does anybody maybe know a solution? Sorry if the post isn't clear enough or in the right fourm.


    Jeroen Stooker

  2. #2
    Join Date
    Nov 2004

    I haven't gotr the code,,,

    ,,,but this applet seems to work like it collects all its messages from the
    parameter section by using the "m" prefix and a numeric (0,1,2,3..etc.)
    postfix. So if it hasn't any limit it seems that you can enter as many
    messages you want as long as you keep the numeric postfix contiguos; the
    parameter collection stops at the first null receival.

    The linebreaks you insert into the lines doesn't show ? Well, if the text
    applet has no logic for detecting these characters (performs a line
    advance in its text string paint job when they are found using fontmetrics
    calculations etc.) then they are just bypassed.
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.