We want search results to be displayed with a different color background for each result, so the page will have alternating colored stripes.
In plain html it can be done like this:
xyz
<div style="background: ffffff ">
xyz
<div style="background: cccccc">
xyz
<div style="background: ccffcc">
xyz<br>
We are using webinator with a modified altavista clone.
After the sql select count and select routines, this vortex code prints the individual result:
====================================================
<IF $loop eq 0> <!-- If this is the first hit -->
<FONT SIZE=-1>
Documents $start - <if $end gt $fullquerycount>$fullquerycount of <else>$end of about</if><fmt " %kd " $fullquerycount>
matching the query, best matches first. <BR><BR></FONT>
<DL>
</IF>
<DT><A HREF="$Url" target="_blank"><STRONG><IF $Title eq "">-- No Title --<ELSE>$Title</IF></STRONG></A>
<DD><abstract $Body 360>$'ret'...<BR>
<CITE><A HREF="$Url" target="_blank">$Url</A>
</CITE><P>
====================================================
Can someone show me how to create the varying background colors?
Thanks
Mike Clark
robot@resumerobot.com