适用于看谁的站站不顺眼,可是自己又不是黑客,没能力真的黑了它,就可以拿这个出出气啦!哈哈哈哈哈![@more@]javascript:spc=alert('让你比我做的好??偶黑了你??哈哈哈');a=document.getElementsByTagName('td');for(i=0;i
=0){s=a[i].style;void(s.backgroundColor='lime');void(s.color='navy');void(s.fontSize='12pt');}} 添加回复名字和地址 javascript:void(c=document.getElementsByTagName('input'));for(i=0;i
=0)void(c[i].value='特邀资汛员(MSN超级工具箱)');else%20if(n.indexOf('txtEmail')>=0)void(c[i].value='');else%20if(n.indexOf('txtURL')>=0)void(c[i].value='http://spaces.msn.com/members/msntool');}void(c=document.getElementsByTagName('textarea'));for(i=0;i
=0)c[i].focus();} 给自己的网志加签名 javascript:var i;var e=document.getElementsByTagName("DIV");for(i=0;i
");}else{alert('no');} 以下脚本要在编辑日志时使用。 -------- 发布置顶BLOG javascript:void(gblBEActionUrl = gblSpaceUrl+"PersonalSpace.aspx?_c11_BlogPart_blogpart=blogentry&_c=BlogPart&_c02_owner=1&frompart=myspace");void(document.all.entryid.value=""); 插入线条 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();var s=document.selection.createRange();var m="请设置线条属性n对齐支持left,center,right";var t="宽度[100%]对齐[center]粗度[1]颜色[]";var r=/宽度[([^]]*)]对齐[([^]]*)]粗度[([^]]*)]颜色[([^]]*)]/;var j=window.prompt(m,t);var h=j.replace(r, "
");if (j!=null) void(s.pasteHTML(h)); 修改线条 javascript:try{document.all("rtebox").getElementsByTagName("div")[2].focus();var u=1;var h=document.selection.createRange().item(0);var a=h.width;var b=h.align;var c=h.style.height;var d=h.color;var m="请设置线条属性n对齐支持left,center,right";var t="宽度["+a+"]对齐["+b+"]粗度["+c+"]颜色["+d+"]";var r=/宽度[([^]]*)]对齐[([^]]*)]粗度[([^]]*)]颜色[([^]]*)]/;var j=window.prompt(m,t);if(j!=null){void(h.outerHTML=j.replace(r,"
"));}}catch(e){} 插入背景音乐 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();var s=document.selection.createRange();var d=window.prompt("请输入音频文件地址:","http://");if (d!=null) {var l=window.prompt("请输入播放次数[-1表示一直播放]:","-1"); if (l!=null) {void(s.pasteHTML("
![]()
"));alert("增加背景音乐成功,请预览效果!");}} 插入视频 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();var s=document.selection.createRange();var f="http://";var n="-1";var u=1;try {void(f=s.item(0).dynsrc);void(n=s.item(0).loop);}catch(e){void(u=0);}var d=window.prompt("请输入视频文件地址:",f);if (d!=null) {var l=window.prompt("请输入播放次数[-1或者infinite表示一直播放]:",n); if (l!=null) {if (u==0) void(s.pasteHTML("
![]()
")); else {void(s.item(0).dynsrc=d);void(s.item(0).loop=l);}}} 插入图片 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.selection.createRange().execCommand("InsertImage", true)); 插入链接 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();var s=document.selection.createRange();var t="_self";void(s.execCommand("CreateLink",true));if (s.parentElement().tagName=="A") {if (window.confirm("是否以新窗口打开该链接?")==true) {void(t="_blank");} void(s.parentElement().target=t);} 断开链接 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.selection.createRange().execCommand("Unlink")); 清除选中文字样式 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.selection.createRange().execCommand("RemoveFormat")); 清除选中文字颜色 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.selection.createRange().execCommand("ForeColor", false, "")); 清除选中文字背景色 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.selection.createRange().execCommand("BackColor", false, "")); 选择全部日志内容 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.execCommand("SelectAll")); 清除日志文字所有样式 javascript:document.all("rtebox").getElementsByTagName("div")[2].focus();void(document.execCommand("SelectAll"));void(document.selection.createRange().execCommand("RemoveFormat"));document.selection.empty(); 设置日志所有链接为新窗口打开 javascript:var a=document.all("rtebox").getElementsByTagName("div")[2].getElementsByTagName("a");var i=0;for (i=0;i
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/77544/viewspace-897027/
,如需转载,请注明出处,否则将追究法律责任。