mark
 
<cobweb>  
  the mendoza web group
 
Mendoza Web Community: the Mendoza College of Business developer and editor user group.
 
Library (Code)
  .htaccess
   

Error Message Redirect: sample is for a "404 : Page not found" error

ErrorDocument 404 http://www.nd.edu/~cobweb2/errorMessages/404.shtml

Restrict Access: sample for restrictiing access to a web accessable folder on the N: drive

<IfModule !mod_ssl.c>
# no non-ssl access
Redirect permanent / https://www3.nd.edu/
</IfModule>

<IfModule mod_ssl.c>

<Limit GET POST>
order deny,allow
deny from all
allow from all
require user corporon hwang akhmelev
</Limit>

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName ND.EDU
AuthType Kerberos

</IfModule>

See the OIT webpage for How Do I Limit Access to Web Pages for Notre Dame Users Only?

  Alternating table row background color
   

Sample CSS

<style type="text/css">
<!--
.tableText1 {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: ##333333;
background-color:##FFFFFF;
}
.tableText2 {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: ##333333;
background-color:##EEEEEE;
}
-->
</style>

Sample Code

<cfset count = 0>
<!-- initilize the counter (variable name count) to 0 (zero) -->
<cfoutput>
<tr <cfif count mod 2 is 0>class = "tableText1"<cfelse>class = "tableText2"</cfif>>
<!-- if count is even, background is white (FFFFFF), if count is odd background is gray (EEEEEE) -->
<td valign="top">#dataVariableName1#</td>
<td valign="top">#dataVariableName2#</td>
<td valign="top">#dataVariableName3#</td>
</tr>
<cfset count = count + 1>
</cfoutput>