|
发表于 2013-6-30 20:26:56
|
显示全部楼层
javascript:var c=rich_postor._getData();c.quote_id=prompt('请输入楼层的pid,不填则在普通楼层回复'); c.content;var step;var speed;var allcount;var timer;function init() {content=prompt("请输入回帖内容:","水"); var _speed=parseInt(prompt("请输入每轮发帖间隔时间(秒):","10")); speed=(isNaN(_speed)?5:_speed)*1000; var _step=parseInt(prompt("请输入每轮发几贴:","1")); step=isNaN(_step)?1:_step; var _allcount=parseInt(prompt("请输入总共回帖次数(0为不限制):","0")); allcount=isNaN(_allcount)?100:(_allcount==0?true:_allcount); if(!confirm("开始回帖?\n\n回帖:"+content+"\n频率:"+speed+"毫秒\n每次发帖数:"+step+"\n 全部 数量:"+allcount+"\n")){ return; }c.content=content; timer=setInterval("reply ()",speed);}function reply(){ for(var i=0;i<step && allcount;i++){ PostHandler.post (rich_postor._option.url,c,function(I){},function(I){}); typeof allcount=="number"? allcount--:''; } allcount?'':clearTimeout(timer)|alert("盖楼完成");}init();void 0;
加粗后文
javascript:var%20c=rich_postor._getData();c.content='<strong>'+$("#edit_parent").find("div.tb-editor-editarea").html()+'<strong><span>';for(var%20i=1;i<=1;i++){PostHandler.post%20(rich_postor._option.url,c,function(I){rich_postor.showAddResult(I)},function(I){});};void%200
加红后文
javascript:var%20c=rich_postor._getData();c.content='<span%20class="edit_font_color">'+$("#edit_parent").find("div.tb-editor-editarea").html();for(var%20i=1;i<=1;i++){PostHandler.post%20(rich_postor._option.url,c,function(I){rich_postor.showAddResult(I)},function(I){});};void%200
加粗加红后文
javascript:var%20c=rich_postor._getData();c.content='<span%20class="edit_font_color"><strong>'+$("#edit_parent").find("div.tb-editor-editarea").html()+'<strong><span>';for(var%20i=1;i<=1;i++){PostHandler.post%20(rich_postor._option.url,c,function(I){rich_postor.showAddResult(I)},function(I){});};void%200
取消加粗
javascript:var%20c=rich_postor._getData();c.content='</strong>'+$("#edit_parent").find("div.tb-editor-editarea").html()+'</strong><span>';for(var%20i=1;i<=1;i++){PostHandler.post%20(rich_postor._option.url,c,function(I){rich_postor.showAddResult(I)},function(I){});};void%200
楼中楼加粗后文
javascript:SimplePostor.prototype._getHtml=function(){var%20a='<strong>'+this._se.getHtml()+'<strong>';return%20a};void%200
楼中楼加红后文
javascript:SimplePostor.prototype._getHtml=function(){var%20a='<span%20class="edit_font_color">'+this._se.getHtml()+'<span>';return%20a};void%200
楼中楼加粗加红后文
javascript:SimplePostor.prototype._getHtml=function(){var%20a='<span%20class="edit_font_color"><strong>'+this._se.getHtml()+'<strong><span>';return%20a};void%200
楼中楼取消加粗加红后文
javascript:SimplePostor.prototype._getHtml=function(){var%20a='</strong>'+this._se.getHtml()+'</strong>';return%20a};void%200
说明,
加红仅限于ie浏览器查看。
针对楼中楼的操作需要打字运行代码后手动点击提交回答。
楼中楼的加粗加红等会造成ie浏览器无法查看楼下的图片,下边的图片都会缩放的很小很小,包括签名档也会缩放,firefox,chrome,opera等查看图片正常。
另,楼中楼的加粗,加红,加粗加红等会让用户名和贴吧等级名称等等变得很大很大,当然,这个也仅限ie浏览器查看~~~
|
|