
|
84799 packages online
|
|
 |
|
|
|
No screenshot available
|
|
I was always forgetting to change the 'Last revised' date each time I updated my
WWW pages. So I wrote this script.
HTMLDate.ged looks for a user-defined string (default 'Last revised' - can be
changed), followed by a 3 or 4 word date string ('26th January 1997' or 'Monday,
31 March 1997'). It then deletes the existing date and inserts the current date.
It can be added as a button on GoldED's WWW toolbar.
History
~~~~~~~
V1.5 Fixed problem of unwanted spaces before new date string - thanks to
Gregor B. Rosenauer (aka Rosso) for this simple fix.
You can now surround the date portion of the string with as many HTML
style tags as you like. Again, thanks to Rosso.
The user defined string ("Last revised:") can now be of any (reasonable)
length, and is case insensitive.
Correct operation of date insertion if 'EXCLUDE CURSOR' is checked on.
(Thanks again to Rosso for the enlightenment on this subject)
Tidied up the code a little.
V1.4 Added checking for a non-existant revision date. If 'Last revision' (or
whatever you have set for the 'Str' variable) is not found, then the user
will be informed via a suitable requester.
V1.3 The script now accepts the date in 2 formats. There are now 2 variables to
be set at the beginning of the script. See the script header for full
details.
V1.2 Revised the method of reading the current date. The script now uses the
GoldED internal DATE variable. The user will need to set the correct
date style within the preferences of GoldED. See script for details.
V1.1 Removed the leading '0' for single digit days.
V1.0 Initial release
See the script header for full details.
Any comments or suggestions via EMail please.
Cheers,
--
*Roy E Brown* | A4000 OS3.1 | 38Mb RAM | MFC III | Thor 2.5 Elysium |
Doncaster | CyberStorm II | 1.28Gb HD | ZIP 100 | Miami 2.1c |
England | 68040/40MHz | 2x CDROM | USR V34+ | Team AMIGA |
UK | Picasso IV | http://www.ebrown.demon.co.uk |
--
Scrute the inscrutable; eff the ineffable.
|
Contents of comm/www/HTMLDate.lha
PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 1925 4511 42.7% -lh5- f75d Jul 22 1997 HTMLDate.ged
[generic] 1003 1938 51.8% -lh5- c72b Jul 22 1997 HTMLDate.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 2 files 2928 6449 45.4% Aug 9 1997
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |