爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
HTML代码转换成js代码
HTML代码转换成js代码
日期:2014-05-18 浏览次数:20353 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
有什么问题请到<a href='/bbs/index.asp?boardid=2'>论坛</a>中发表<br> <!--# 特效来源:http://www.aiyiweb.com/js --> <!-- 第一步:把如下代码加入<body>区域中 --> <!-- 第一步:把如下代码加入<body>区域中 --> <script language=JavaScript> <!-- var i=0; var ie=(document.all)?1:0; var ns=(document.layers)?1:0; function initStyleElements() /* Styles for Buttons Init */ { var c = document.pad; if (ie) { //c.text.style.backgroundColor="#DDDDDD"; c.compileIt.style.backgroundColor="#C0C0A8"; c.compileIt.style.cursor="hand"; c.select.style.backgroundColor="#C0C0A8"; c.select.style.cursor="hand"; c.view.style.backgroundColor="#C0C0A8"; c.view.style.cursor="hand"; c.retur.style.backgroundColor="#C0C0A8"; c.retur.style.cursor="hand"; c.clear.style.backgroundColor="#C0C0A8"; c.clear.style.cursor="hand"; } else return; } /* Buttons Enlightment of "Compilation" panel */ function LightOn(what) { if (ie) what.style.backgroundColor = '#E0E0D0'; else return; } function FocusOn(what) { if (ie) what.style.backgroundColor = '#EBEBEB'; else return; } function LightOut(what) { if (ie) what.style.backgroundColor = '#C0C0A8'; else return; } function FocusOff(what) { if (ie) what.style.backgroundColor = '#DDDDDD'; else return; } /* Buttons Enlightment of "Compilation" panel */ function generate() /* Generation of "Compilation" */ { code = document.pad.text.value; if (code) { document.pad.text.value='正在转换...请稍等!'; setTimeout("compile()",1000); } else alert('请先输入一些字符') } function compile() /* The "Compilation" */ { document.pad.text.value=''; compilation=escape(code); document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>"; i++; if (i=1) alert("转换完成!"); else alert("Page compiled "+i+" times!"); } function selectCode() /* Selecting "Compilation" for Copying */ { if(document.pad.text.value.length>0) { document.pad.text.focus(); document.pad.text.select(); } else alert('什么也没输入!') } function preview() /* Preview for the "Compilation" */ { if(document.pad.text.value.length>0) { pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110"); pr.document.write(document.pad.text.value); } else alert('什么也没输入!') } function uncompile() /* Decompiling a "Compilation" */ { if (document.pad.text.value.length>0) { source=unescape(document.pad.text.value); document.pad.text.value=""+source+""; } else alert('请先输入一些字符!') } // --> </script> <form method=post name=pad align=center> <textarea rows=11 name=text cols=58 style="background-color:#EBEBEB;width:95%"></textarea><br> <input type=button value=转换 name=compileIt onClick=generate() onMouseOver=LightOn(this) onMouseOut=LightOut(this)> <input type=button value=选择 name=select onClick=selectCode() onMouseOver=LightOn(this) onMouseOut=LightOut(this)> <input type=button value=显示 name=view onClick=preview() onMouseOver=LightOn(this) onMouseOut=LightOut(this)> <input type=reset value=清除 name=clear onMouseOver=LightOn(this) onMouseOut=LightOut(this)> </form> <!-- 第二步:把如下代码加入<body>区域中 --> <body bgcolor="#ffffff" onload=initStyleElements()> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:html与asp的代码互换
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
京东确定IPO定价区间 最高募资16.9亿美元
SAP高层调整:联席CEO孟鼎铭成唯一掌舵人
传360周鸿祎曾试图阻止百度收购91无线
微信收费形式三选一 腾讯或变身运营商
中国手游总裁及8名高管集体下岗,被指涉不当交易
广东移动董事长徐龙受调查 圈内对其褒贬不一
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
易信工具性优势突出 丁磊三板斧或先砍在飞信上
纸媒深探版权蓝海抗衡互联网的时机到来了
推荐阅读
更多>
“合聚变”来了 UC优视确认并入阿里巴巴
小灵通两年都无信号 顾客起诉联通公司
小米打响手机价格战 为米3铺路或另有所图
微软小冰复活再战移动端:改与米聊、易信和触宝合作
创维冲击500亿梦想:转型硬件和内容供应商
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
三星维修新规:Galaxy S4主板进水也收费修
OPPO Find7体验测 Find7综测
高德百度地图免费背后:李彦宏暗斗马云周鸿祎
美图手机2问世 三大问题令其市场销量堪忧
诺基亚依托规模效应 猛攻国际市场空白
美国政府关门可能影响去哪儿等公司IPO
三星已经将Galaxy S5视为失败之作?
谷歌欲收买WhatsApp添加砝码 对方否认
传谷歌开发者大会发布Android 4.3 并非5.0版本
IT企业人才争夺战打响:员工待遇水涨船高
如家撤离同程内情:祸起反水OTA“联盟”?
苹果30亿美元收购Beats
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
苹果优势逐渐丧失 传即将推出廉价iPhone