|
The following examples
of codes will
enable you to include dynamic information in your web
page.
Add the code to your index.html page. For assistance in implementing these codes, contact the
Monticello Avenue staff at webmaster@avenue.org. |
|
|
| Execute a Counter
There have been <!--#exec cgi="/cgi-bin/count"-->
connections to this page.
Would display as: There have been 2021 connections to this page. |
|
| Last Modified
This document was last modified: <!--#echo var="LAST_MODIFIED"-->
Would display as: This document was last
modified: Thursday, November 18, 2004 |
|
JavaScript
|
|
Spam proof email script
<script language="JavaScript">
<!-- Hide me from older non-JavaScript-enabled browsers
/* By storing the name, at sign, domain, and dotcom separately; and using JavaScript to
write out the mailto tag using variables, we can foil e-mail trolling bots. As far as I know,
they're not yet that sophisticated :) */
/* To modify this JavaScript to suit your needs, simply change
the values assigned to the variables, and the content of the
document.write lines below. */
var name = "MonticelloAvenueuserID";
var atsign = "@";
var virtual_domain = "avenue";
var dotcom = ".org";
document.write("<div align=center>Comments/suggestions? ");
document.write("<a href=mailto:", name + atsign +
virtual_domain + dotcom, ">E-mail</a>");
document.write(" them to us.");
document.write("</div>");
// -->
</script>
Would display as: Comments/suggestions? E-mail them to us.
|
|
|