ET New Tag - Example

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 example

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

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

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

<!--The image to be shown if the file is older than 7 days.-->
<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.