ET New Tag - Example

Oldlimit = 1:
Oldlimit = 400:

If you only can see question-marks in the example above it is because you aren't accessing this page from a webserver (the browser usually prevents the applet from accessing the date of a file if it is located on the local hard disk).

Next applet

This is the HTML code for the first applet:

<applet code="ET_NewTag.class" width="36" height="24">

<param name="OldLimit" value="1">

<!--The file that should be checked.-->
<param name="URL" value="Example.html">

<!--The image to be shown if the file is newer than 1days.-->
<param name="NewImage" value="New.gif">

<!--The image to be shown if the file is older than 1days.-->
<param name="OldImage" value="Old.gif">

<!--The image to be shown if the applet is unable to obtain the file date.-->
<param name="UnknownImage" value="Unknown.gif">

</applet>

The source shown above is not exactly the same as for the example, as it assumes that the class files are in the same directory as the html file.


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