function use_mine(itemid){ if(!itemid){ return; } var dir=math.ceil(itemid/1000); img_src='http://img.zol.com.cn/bbs/little/l_'+dir+'/'+itemid+'.gif'; document.getelementbyid('face_to_insert').innerhtml=; document.getelementbyid('face_to_show').src=img_src;}
function message(userid,messageid){ var tr; tr = 'http://v1.bbs.zol.com.cn/user/send_msg.php?userid=' + userid+'&messageid='+messageid; window.open(tr,'message','width=470,height=382');}
function copyrssurl(url){ if(!url){ return; } window.clipboarddata.setdata('text',url); alert('rss地址已复制到剪贴版');}
function add_hexun(){ t=document.title; u=location.href; e=document.selection?(document.selection.type!='none'?document.selection.createrange().text:''):(document.getselection?document.getselection():''); void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'hexunbookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes')); document.getelementbyid('hexun_bookmark').src='http://v1.bbs.zol.com.cn/tips/hexun_bookmark.php'; }
function ckform(obj){ if(0==obj.content.value.length){ alert('内容不能空啊!'); obj.content.focus(); return false; } if(img_src){ toadd = [img]+img_src+[/img]; obj.content.value += toadd; } obj.submit_data.value='正在提交..'; obj.submit_data.disabled=true; return true;} function reply_this(nickname,userid,level,headpic){ document.location = '#top_reply'; var info_str='对 '; if(level){ info_str+='第'+level+'楼'; }else{ info_str+='楼主'; } info_str+=' '+nickname+' 说:'; document.reply_form.reply_info.value=info_str; document.reply_form.reply_to_userid.value=userid; document.reply_form.content.focus();}
//对于匿名发贴网友 回复定位到回复框function sysauto_reply(){ document.location = '#top_reply'; document.reply_form.content.focus();}
function ctlent(eventobject){ if(event.ctrlkey && window.event.keycode==13){ if(img_src){ toadd = [img]+img_src+[/img]; document.reply_form.content.value += toadd; } if(ckform(document.reply_form)){ document.reply_form.submit(); document.reply_form.submit_data.disabled=true; } }}function setsuper(tr){ str = '['+ tr +']' + document.reply_form.content.value + '[/'+ tr +']'; document.reply_form.content.value = str;}function onsize(){ toadd = '[size='+document.reply_form.fbsize.value+']' + document.reply_form.content.value + '[/size]'; document.reply_form.content.value = toadd;}function readcookie(name){ var cookievalue = ''; var search = name + '='; if(document.cookie.length > 0) { offset = document.cookie.indexof(search); if (offset != -1) { offset += search.length; end = document.cookie.indexof(';', offset); if (end == -1) end = document.cookie.length; cookievalue = unescape(document.cookie.substring(offset, end)) } } return cookievalue;}
function writecookie(name, value, hours){ var expire = ''; if(hours != null) { expire = new date((new date()).gettime() + hours * 3600000); expire = '; expires=' + expire.togmtstring(); } document.cookie = name + '=' + escape(value) + expire;}
function cimage(){ var enterurl = prompt(请输入图片网址, http://); if (enterurl){ toadd = [url=http://v1.bbs.zol.com.cn/tips/show_linkpic.php?piclink=+enterurl+][img]+enterurl+[/img][/url]; } if(toadd){ document.reply_form.content.value += toadd; }}
function cswf(){ var entersize = prompt(输入flash尺寸(宽,高)!, width=300 height=250); var enterurl = prompt(请输入flash网址, http://); if (enterurl) { toadd = [flash]+enterurl+ +entersize+[/flash]; } if(toadd){ document.reply_form.content.value += toadd; }else{ return; }}
function curl(){ var founderrors = ''; var enterurl = prompt(输入链接网址!, http://); var entertxt = prompt(输入链接说明!, 说明); if (!enterurl) { founderrors += \n + 链接网址不能为空; } if (!entertxt) { founderrors += \n + 链接说明不能为空; } if (founderrors) { alert(错误!+founderrors); return; } str = [url=+enterurl+]+entertxt; document.reply_form.content.value += str; document.reply_form.content.value += [/url];}
操作 字体大小 1234567
内容
图片及更多功能
图片
卡通图标 012345678901234567890123456789
[完成后可按 ctrl+enter 发布]
[ctrl+a 全选 注:如需引入外部js需刷新才能执行]
