爱易网
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 浏览次数:20341 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
有什么问题请到<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的代码互换
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果30亿美元收购Beats
“论文查重”网店一月收入竟过百万
网曝富士康500万iphone遭退货是确证的事
王建宙解构OTT效劳 中移动重塑飞信平台
微博启动自媒体计划 粉丝+收入双激励是亮点
余额宝收益率跌破5% 银行系宝宝收益率赶超
苹果MacBook Air劣势渐显 或推新产品改变命运
苹果6月20日发布iPhone5S 触摸屏概念股生动
iPhone 6将于10月17日内地上市:售5288元起
推荐阅读
更多>
“宽带中国”计划已正式上升为国家战略
百度对糯米来说到底意味着什么?
三星手机在国内陷入困境:华为中兴小米紧追
英特尔VS苹果:移动芯片大战
英特尔IDF峰会启示:释放移动互联的信号
八位知名设计师评iOS7:新鲜但复杂
华为、小米和联想在中国手机市场上演“三国杀”
京东终于想明白,这些年错过的财运,都藏在女人的时装下
FB上广告费用昂贵而且效果不及Twitter
网易微博将正式关闭 用户迁至轻博客LOFTER
欧洲6万人起诉Facebook隐私侵权
中国邮政与阿里合作:邮政网点可做网购自提点
联通丹东公司一高管造假套出手机变卖被判刑7年
【晚报】女子泰国游晒10照片 流量费2000
苹果售后生态链乱象:供需失衡价钱不一
做大电影,阿里控股公司在港成立影业集团
美剧讲硅谷创业者:远不及现实荒诞?
传谷歌开发者大会发布Android 4.3 并非5.0版本
继续涨:微博IPO第二交易日 收盘大涨11.71%
空气污染器市场乱象丛生 选购需慎重