Thank you

I am sure this will help many people.
Your code looks fine and you taught me something about <div> tags

The only thing you might want to change is:
$q = DoQuery("SELECT * FROM $SERVER[TBL_PREFIX]filter WHERE type='1' LIMIT $smstart,52");
That limits it to 52, so what you can do is this:
$q = DoQuery("SELECT * FROM $SERVER[TBL_PREFIX]filter WHERE type='1'");
And then it won't be limited at all!
Overall code w/o 52 smilie built in limit:
<td width="196" height="79" bgcolor="<? echo $CS['2']; ?>" style="border: 1px solid <?=$CS[3]?>;">
<div style="height: 79px; width: 196px;overflow: auto;"><?
$smstart = 0;
$tsmilies = 0;
$smilies = "";
$q = DoQuery("SELECT * FROM $SERVER[TBL_PREFIX]filter WHERE type='1'");
while($row = Do_Fetch_Row($q)){
$row[3] = eregi_replace("^../","./",$row[3]);
$smilies .= "<img src=\"$row[3]\" onclick=\"javascript: smclick('$row[2]')\">";
$tsmilies++;
}
print("<font color=\"$CS[FONTLT]\">$smilies");
?></div></td>
Proof that every day you learn everything new, I did not know that DIV could scroll like that. I will test it on Opera and Mozilla web browsers for you.