Free Text Scrroller


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Free Text Scrroller

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    5

    Question Free Text Scrroller

    I have downloaded the text scroller and the SIRtext.class. I uploaded the script in my web page http://georgiatrailriders.com and also the SIRtext.class applet. Is this all I need? I am green as far as Java. I tried to check if I have the latest java in Opera and Firefox with no results. I have installed the latest in my computor. Evidentally I do not know what I am doing.
    Can you set me straight or give me a menu to walk me through this? Thank You

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    If the SIRtext.jar is located in the same directory as its html page the complete code for the start of the applet tag would be:
    Code:
    <applet code="SIRtext.class"  codebase="." width=200 height=200 archive="SIRtext.jar">
    The codebase attribute is only required if your applet is not in the same directory as its html file.

    If you use IE, you can click:

    Tools - Sun Java Console

    and see the error messages generated by the browser. In this case it just delivers a more elaborate message saying that it can't find the class file.

    Note: if the class file in the jar is compiled with a package directive the tag would be:

    Code:
    <applet code="packagename.SIRtext.class"  codebase="." width=200 height=200 archive="SIRtext.jar">
    Good luck !
    eschew obfuscation

  3. #3
    Join Date
    Jan 2006
    Posts
    5

    Free Text Scroller

    I use either Firefox or Opera. my OS is linux kubuntu Could you look
    at the source view for the page "http://georgiatrailriders.com/intro1.html" Maybe this will give you an idea as to where I went wrong.

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    This code line :
    Code:
    <applet code="packagename.SIRtext.class"  codebase="." width=200 height=200 archive="SIRtext.jar">
    Implies that the java source file for SIRtext.java (that you don't have) starts with a package directive like:
    Code:
    package packagename;
    and I'm quite sure it doesn't. I've seen the SIRtext applet on other sites, and it doesn't use a jar file, there the applet tag started like this:
    Code:
    <applet code="SIRtext.class"  codebase="." width=200 height=200>
    eschew obfuscation

  5. #5
    Join Date
    Jan 2006
    Posts
    5
    The way this all started was inserting the file and then when I go to that site it would kill/close firefox. Something in my firefox is interfering with the java file. I think I will delete the file and start over and see if firefox still closes. Thanks

  6. #6
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Just a note: Some months back I tried out an applet on different browsers, all went well except for FireFox, it seemed to me that it had some troubles with threads (parallel processing), and the SIRtext applet is definitely using thread(s).
    eschew obfuscation

  7. #7
    Join Date
    Jan 2006
    Posts
    5
    Maaybe I can get it working in Opera and stay away from Firefox for now.

Similar Threads

  1. Importing text file using schema.ini
    By Kevin in forum VB Classic
    Replies: 3
    Last Post: 12-05-2005, 07:25 PM
  2. Free entry to the world's largest 3G expo
    By Steve Cassidy in forum Mobile
    Replies: 0
    Last Post: 10-08-2001, 08:54 AM
  3. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 12:45 PM
  4. Double Text 1.0
    By George Gilbert in forum vb.announcements
    Replies: 0
    Last Post: 08-19-2001, 12:34 PM
  5. Who Pays For Free Software?
    By Zane Thomas in forum .NET
    Replies: 31
    Last Post: 02-06-2001, 09:17 PM

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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