Is there a JS guru out there who can change the supplied section list in 2 column (page 38 AUG) into 4 columns.
rather than have 2 columns of 8 I want to get 4 cols of 4. I've already stripped out the child sections as I only need the top levels
rather than have 2 columns of 8 I want to get 4 cols of 4. I've already stripped out the child sections as I only need the top levels
Code:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function SectionList(ar)
{
var col = 1;
var strIDs = '<table width="100%"><tr><td valign=top width="50%">';
for (var i=1;i<=ar.length;i++)
{
if (ar[i].sURL !=null)
{
strIDs += '<a href="' + ar[i].sURL + '"><span class="actxsmall">' + ar[i].sName + '</span></a><br>';
{
}
if ( col == 1 )
{
strIDs += '</td><td valign=top width="50%">';
col++;
}
else
{
strIDs += '</td></tr><tr><td valign=top width="50%">';
col = 1;
}
}
}
if ( col == 1 ) strIDs += '</td><td>';
return strIDs + '</td></tr></table>';
}
//-->
</SCRIPT>

Comment