ET New Tag - Documentation


 

 

 

(no applet here)

 

Features

ET New Tag is an applet that checks the file date of a specific URL. If the file at the URL is newer than a number of days given in the parameters, the applet shows an image telling if the file is new. The applet also supports images for old or unknown files. There is no need anymore to manually put small new signs next to hyperlinks.

Examples

Get started

  1. Start with a simple web-page where you want the applet. (E.g. Test.html)
  2. Copy the class file to the same directory as Test.html:
    ET_NewTag.class
  3. Copy the applet and parameter tags from the simple example (or any other example, but it is safer to start with something simple).
  4. If you get it to work you can add more parameters from the list below. Check out the other examples for inspiration. If you have problems, check the FAQ for more help.
  5. If you still don't get it right, read the tutorials at http://www.htmlgoodies.com/ regarding Java applets.
     
   

Parameters

This is the list of parameters that can be used in the HTML code with this applet. If the applet is unable to interpret a parameter, it will be ignored.
 

The file to be checked

  URL
The URL that the applet will check the date of.
Values: URL to file
Default: none
 
    OldLimit
The number of days that will be considered old.
Values: 1-400
Default: 7
 

Images

  NewImage
If the URL is newer than the OldLimit then NewImage is shown.
Values: URL to image
Default: none
 
    OldImage
If the URL is older than the OldLimit then OldImage shown.
Values: URL to image
Default: none
 
    UnknownImage
If the applet doesn't get the URL file date then the UnknownImage is shown.
Values: URL to image
Default: none
 

Background

  BGColor
The color of the applet background.
Values: 000000 - ffffff
Default: ffffff (white)
See Also: Color notation.
 
   

Known Bugs

Netscape 2.0 doesn't allow any applet to check the file date of a URL.

If you find any other bugs please report them to us.
 

   

Future Features

It's always possible to improve an applet, but every feature creates more code, and more code will result in longer loading times.

Currently we don't have any new features planned for this applet.

 

© 1997-2000 Entanke. Visit us at http://www.entanke.se/ for more information.