[thelist] Need font identified

.jeff jeff at members.evolt.org
Wed Jul 18 16:14:10 CDT 2001


chuck,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Chuck Sumpter
:
: Arrrrrgh.....
:
: http://www.fringegolf.com/
:
: supports only NN6, IRRITATING.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

how do you figure?  worked just fine for me in ie5.0.

btw, this is offtopic and requires tippage.

<tip type="ColdFusion" author=".jeff">

props to rudy for posting the solution to displaying sorted data by column
(one item per cell in a table) as opposed to by row.  i decided to take it a
step further and generalize the code so you can change the number of columns
displayed simply by changing a variable value.

<cfset displayCount = StructKeyArray(wordCount)>
<cfset rows = ArrayLen(displayCount)>
<cfset columns = 7>
<cfset modulos = Ceiling(rows / columns)>
<table cellpadding="2" cellspacing="1" border="0">
<cfloop from="1" to="#modulos#" index="row">
<tr>
<cfloop from="1" to="#columns#" index="column">
  <cfset temp = (row - 1) + column>
  <cfif column GT 1>
    <cfset temp = temp + (modulos * (column - 1))>
  </cfif>
  <td align="right">
    <cfif column EQ columns AND temp GT rows>
      &nbsp;
    <cfelse>
      <strong>#displayCount[temp]#:</strong>
    </cfif>&nbsp;
  </td>
  <td>
    <cfif column EQ columns AND temp GT rows>
      &nbsp;
    <cfelse>
      #wordCount[displayCountemp]]#
    </cfif>&nbsp;
  </td>
</cfloop>
</tr>
</cfloop>
</table>

all you have to do is change the complex value you're referencing for the
output and change the value of the columns attribute to be the number of
columns you want to split the display up by.

</tip>

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list