当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 极酷的javascirpt,让你随意编辑任何网页

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 极酷的javascirpt,让你随意编辑任何网页


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 134 ::
收藏到网摘: n/a

javascript 的编程有时会非常有趣,其情形可以参考我们的煎蛋大师傅 sein 在偶然得知了一个 javascript 秘籍后的兴奋癫狂状(下面的留言更值得一看),现在有人挖掘出了一个蛮酷的技巧,只要打开一个网站,然后在地址栏内打入:
复制代码 代码如下:

javascript:document.body.contentEditable='true'; document.designMode='on'; void(0)
请将其中的全角符号改为半角,回车,OK,你就可以随意编辑这个这个页面了。喜欢恶搞的人,快快打开……嗯,比如 Microsoft 的网站,然后改它个面目全非吧。
#厚道的提醒1:这种更改当然只能自己看着爽爽,不会影响到服务器,可谓最正宗的YY也。
#厚道的提醒2:在digg的评论中给出的一些脚本更cool,比如这条,打开google网页后,在地址栏内输入如下内容并回车:
复制代码 代码如下:

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);
还有人给出了这些脚本背后工作原理的相关链接。
#厚道的提醒3: 附图当然是我cunni的杰作,瓦咔咔!
#厚道的提醒4:不知为何这些代码复制过去会自动把半角单引号变成全角双引号,所以请自行更改为半角单引号才能看到效果。