redebug - 2008-4-16 0:03:00
该入库也都入了
服务器都重新启动
依然解决不了
最后修改 editor 目录下 post.js 有个函数showFirstPageSmilies(firstpagesmilies, defaulttypename, maxcount)解决
function showFirstPageSmilies(firstpagesmilies, defaulttypename, maxcount)
{
var html = '<table align="center" border="0" cellpadding="3" cellspacing="0" width="90%"><tr>';
var ci = 1;
var s = firstpagesmilies[defaulttypename];
for (var id = 0; id <= maxcount - 1; id++) {
//这为新添加
if(s[id] == null)
{
continue;
}
html += '<td valign="middle"><img style="cursor: pointer;" src="editor/images/smilies/' + s[id]['url'] + '" id=smilie_' + s[id]['code'] + ' alt="" title="" border="0" height="20" width="20" /></td>';
if (ci%4 == 0) {
html += '</tr><tr>'
}
ci ++;
}
html += '<td colspan="' + (4 - ((ci-1) % 4)) + '"></td>';
html += '</tr>';
html += '</table>';
$("showsmilie").innerHTML = html;
}
redebug - 2008-4-16 0:11:00
没有仔细去看 函数maxcount 从哪里去出来的
跟踪发现 maxcount 比数据库表里的实际记录大1
所以就出现 s[ maxcount ] 为空
表情加载不上
baggio2008 - 2008-4-28 11:19:00
太感谢了!试试看。