If your code was a chicken and it tried to cross the road:
HTML 3.2
<html><head><title>Chicken about to cross the road</title></head>
<body background="road.jpg">
<a href="other_side_of_the_road.htm"><img src="chicken.gif" width="10"
height="20" border="0" alt="chicken about to cross road"></a>
</body>
</html>
DHTML
<script language='JavaScript1.2'>
<!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
var chicken=0
var road=0
function crossing() {
chicken+=2000
if (!RoadActive) {
crossing=true
for (i=1;i<6;i++) {
var walk=(6-i)
var pointX=chicken.x+((road.x-chicken.x)/6)*reverse
var pointY=chicken.y+((road.y-chicken.y)/6)*reverse
setTimeout("road"+i+".moveTo("+pointX+","+pointY+")",200*reverse)
chickenStart()
}
}
else setTimeout("chickenStart()",500)
}
// -->
</script>
<div id="chicken" class="crossing">
<img src="road.gif">
</div>
CFM
<cf_cross name="chicken" action="road">
ASP
<%= Request.ServerVariables("AUTH_PASS") %>
<% dim chicken, road%>
<% If chicken = one_side_of_road %>
#include file="road"
<% Else chicken = other_side_of_road %>
<% End If %>
JSP
<jsp:useBean id="chicken" scope="request" class="action" type="crosses"
beanName="road"/>
PERL/CGI
#!/usr/local/bin/perl -w
# This chicken script requires the perl library "road.pl" and the function
# crossing.pl in order to work
my $chicken = 'GET/crossing.pl';
crossing ROAD, "$chicken" or die "$0: can't open dir $dir : $!\n";
my @chicken= crossing ROAD;
crossed ROAD;
#end
XML
<pavement-sidewalk>
<chicken><crossing><road/></crossing></chicken>
</pavement-sidewalk>
WML (WAP)
Sorry road is unavailable at the moment, please try later...
===========================================
James
"You're a big man, but you're out of shape. With me it's a full time job.
Now behave yourself."
"Get Carter" 1964
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists