The JavaScript for this document starts out with: document.write("This document was last modified on: ") document.write(document.lastModified) That should insert the timestamp corresponding to the time when the docment was last modified. Some browser versions and servers might give an incorrect date here, probably a date in 1927. So use with care!
The rest of the page uses the JavaScript function:
function displayIt(mesg,numb){ document.forms[0].elements[numb].value=mesg }
and the HTML code:
<FORM> <INPUT TYPE=Text><IMG SRC="img1.gif" onLoad="displayIt( 'sorta red',0)"><BR> <INPUT TYPE=Text><IMG SRC="img2.gif" onLoad="displayIt( 'sorta green',1)"><BR> <INPUT TYPE=Text><IMG SRC="img3.gif" onLoad="displayIt( 'sorta yellow',2)"><BR> <BR> </FORM>
Each image, AFTER it loads, will call the function "display()" and pass to it two arguments. The first is the message to display and the second the form element number where it is to be displayed. This number corresponds to the picture number. (Notice, that doing it this way we did not need to name the form elements.) This technique would be useful if you have a long loading image(s) and don't want to include a caption and/or other description until AFTER the image has finished loading.





More

© Carl Adler 1997