ieqiang 2006-12-31 23:33
请问如何默认是打开“UBB表情”的呢
就是发表评论时不需要点“显示UBB表情>>”....直接就显示那些UBB表情呢?
月上之木 2007-1-1 14:17
改SCRIPT/common.js
中的 输出UBB 下代码为:
[code]//*********************************************************
function ExportUbbFrame() {
if(!objActive){objActive="txaArticle"};
document.write("<p>")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[URL]','[/URL]'),true);\" style=\"padding:2px;cursor:pointer;\">[URL]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[URL=http://]','[/URL]'),true);\" style=\"padding:2px;cursor:pointer;\">[URL2]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[EMAIL]','[/EMAIL]'),true);\" style=\"padding:2px;cursor:pointer;\">[EMAIL]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[EMAIL=@]','[/EMAIL]'),true);\" style=\"padding:2px;cursor:pointer;\">[EMAIL2]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[B]','[/B]'),true);\" style=\"padding:2px;cursor:pointer;\">[B]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[I]','[/I]'),true);\" style=\"padding:2px;cursor:pointer;\">[I]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[U]','[/U]'),true);\" style=\"padding:2px;cursor:pointer;\">[U]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[S]','[/S]'),true);\" style=\"padding:2px;cursor:pointer;\">[S]</a> ")
document.write("<a alt=\"\" onmousedown=\"InsertText(objActive,ReplaceText(objActive,'[QUOTE]','[/QUOTE]'),true);\" style=\"padding:2px;cursor:pointer;\">[QUOTE]</a> ")
document.write("<a style=\"cursor:pointer;text-align:right;\" onclick=\"if(document.getElementById('UbbFrame').style.display=='block'){document.getElementById('UbbFrame').style.display='none';}else{document.getElementById('UbbFrame').style.display='block'};\">"+str06+"</a> ")
document.write("</p>")
document.write("<p id=\"UbbFrame\" style=\"display:block;\"></p>")
InsertUbbFace();
}
//*********************************************************[/code]
然后刷新,就可以看到效果了
[[i] 本帖最后由 月上之木 于 2007-1-19 15:36 编辑 [/i]]
hhb520 2007-5-7 10:35
搞定
我觉得显示出来的比较好,我的也是这样了[url]http://hhb.zhitx.com/[/url]
wangfenkai 2007-10-2 00:24
耶,我也用上了,感谢月月
wang25669 2007-10-17 23:19
太好用了
十分感谢
只有一个问题就是
为何我的表情中总有一个不能显示出来呢?
iamviki 2007-12-17 13:37
请教.我把这段代马放进去以后...
不显示..点了"显示UBB表情"也不显示....
只是点"显示UBB表情"按钮时.原本放图标位置以下的物件全向下动了一下..