Links to other sites
Officinado
Directory Search Site
1st Class Media
New media web development and hosting company
|
Developers
As well as offering secretarial services, we at 1st Class also develop databases and associated scripts, some of which may be of some use to visitors who may wish to find some application or use for some of the snippets and code tutorials listed below.
Database scripts
none at present
ASP/Web Application Scripts (as featured in )
1. Swear word removal
This function when applied to a string will replace all occurences of the swear words (or email references if you choose) with the proposed change
2. Simple Alternate Row Colors
Many scripts use the Mod 2 function to replace row colors, way too complex! Try this simple snippet for size!
<Table>
<% ....While loop...
if rc="" or rc="#E2E2e2" then rc="#ffffff" else rc="#E2E2e2"
%>
<tr bgcolor="<%=rc%>">
3. Crop Sentence Function - does what claims to do, wrap it around the string of your choice and give it a length and any trailing characters, you're off!
<%
Function cropsen(strInput, numchars, trailer)
If Len(strInput) > numchars Then
cropsen = Mid(strInput, 1, numchars) &trailer
Else
cropsen = strInput
End If
End Function
%>
Typical Application
cropsen("yourstringinhere",35,"...cropped")
or for database data
cropsen(rs("DetailField"),35,"...cropped")
|