有两个地址:http://www.m5home.com/blog/article.asp?id=75http://www.m5home.com/1/img.htm第二个的代码是求了人才弄出来的......大家尽量使用第二个地址里的吧,因为不是指向我服务器的.我的站在那台服务器上听说占了50%以上的流量.....再多人家该封我了

解决方案 »

  1.   

    放到地址栏中执行,更方便的是添加到收藏夹(IE)或书签(FF):
    javascript:var images = new Array ( "/囧.gif", "/囧rz.gif", "/扮酷.gif", "/哭.gif", "/汗.gif", "/瀑布汗.gif", "/照相.gif", "/找打.gif", "/弹玻璃.gif", "/又鄙视.gif", "/鄙视.gif", "/思考.gif", "/泰山.gif", "/读书.gif", "/做鬼脸.gif", "ii/挖鼻孔.gif", "ii/淫笑.gif", "ii/好喜欢.gif", "ii/唱歌.gif", "/吸烟.gif", "/跳舞.gif", "/来点.gif", "/鹿过.gif", "ii/扫射.gif", "/摇头.gif", "/放过我吧.gif", "/同意.gif", "/反对.gif", "/楼上疯了.gif", "/楼下疯了.gif", "" ); function setSelectText(editor, text) { if (!editor) return; editor.focus(); if (editor.document && editor.document.selection) editor.document.selection.createRange().text = text; else if (typeof(editor.selectionStart) != "undefined") { var str = editor.value; var start = editor.selectionStart; editor.value = str.substr(0, start) + text + str.substring(editor.selectionEnd, str.length); editor.selectionStart = start + text.length; editor.selectionEnd = start + text.length; } } function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function imgClick(src) { var editor = getEditor(); if (editor) setSelectText(editor, ""); closeWindow(); } function imageDialog() { if (typeof(showWindow) == "undefined") return; var htmlDialog = "<div width='100%' height='100%'>\n"; for (var i = 0; i < images.length; i++) if (images[i] != "") htmlDialog += "<img src='http://p.blog.csdn.net/images/p_blog_csdn_net/zswang" + images[i] + "' onclick='imgClick(this.src);'>"; htmlDialog += "</div>\n"; showWindow({html:htmlDialog, width:570, height:490, title:'选择表情'}); } imageDialog();
      

  2.   

    QQ的表情javascript:function setSelectText(editor, text) { if (!editor) return; editor.focus(); if (editor.document && editor.document.selection) editor.document.selection.createRange().text = text; else if (typeof(editor.selectionStart) != "undefined") { var str = editor.value; var start = editor.selectionStart; editor.value = str.substr(0, start) + text + str.substring(editor.selectionEnd, str.length); editor.selectionStart = start + text.length; editor.selectionEnd = start + text.length; } } function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function imgClick(src) { var editor = getEditor(); if (editor) setSelectText(editor, ""); closeWindow(); } function imageDialog() { if (typeof(showWindow) == "undefined") return; var htmlDialog = "<div width='100%' height='100%'>\n"; for (var i = 0; i <= 134; i++) htmlDialog += "<img src='http://p.blog.csdn.net/images/p_blog_csdn_net/renrousousuo/" + i + ".gif' onclick='imgClick(this.src);'>\n"; htmlDialog += "</div>\n"; showWindow({html:htmlDialog, width:450, height:300, title:'选择表情'}); } imageDialog();
      

  3.   

    http://www.m5home.com/blog/attachments/month_0804/0200841613213.gif
      

  4.   

    [img=http://www.m5home.com/blog/attachments/month_0804/0200841613213.gif][/img破坏一个配对.....这个输入框上面有两排按钮,注意到没.倒数第五个即是.....
      

  5.   

    http://www.m5home.com/blog/attachments/month_0804/0200841613213.gif
      

  6.   

    [img=http://p.blog.csdn.net/images/p_blog_csdn_net/myjian/EntryImages/20081202/33.gif]
      

  7.   

    http://www.m5home.com/blog/attachments/month_0806/l2008616198.gif