新建页面 convert.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title><style type="text/css">.toolarea{color: #333333;display: block;height: 250px;margin: 8px 0;padding: 4px;width: 720px;}</style>
</head>
<body><div id="l"><!-- /title --><div class="content-a"><div class="toolcode"><!-- /工具开始 --><script language="JavaScript">function rechange() {document.getElementById('re').value = document.getElementById('oresult').value.replace(/document.writeln\("/g, "").replace(/"\);/g, "").replace(/\\\"/g, "\"").replace(/\\\'/g, "\'").replace(/\\\//g, "\/").replace(/\\\\/g, "\\")}function change() {document.getElementById('oresult2').value = "document.writeln(\"" + document.getElementById('osource').value.replace(/\\/g, "\\\\").replace(/\\/g, "\\/").replace(/\'/g, "\\\'").replace(/\"/g, "\\\"").split('\n').join("\");\ndocument.writeln(\"") + "\");"}</script><h2>HTML转JS代码工具</h2><h3>请将Html源代码粘贴到下面表单中:</h3><textarea onkeyup="change()" onfocus="change()" id="osource" class="toolarea"></textarea><h3>下面表单中是相应的Js代码:</h3><textarea id="oresult2" class="toolarea"></textarea><br><h2>JS转HTML代码工具</h2><h3>请将Js源代码粘贴到下面表单中:</h3><textarea onkeyup="rechange()" onfocus="rechange()" id="oresult" class="toolarea"></textarea><h3>下面表单中是相应的Html代码:</h3><textarea id="re" class="toolarea"></textarea><!-- /工具结束 --></div><div class="ny728x90"><script>                    dy("ny728x90");</script><script type="text/javascript">&lt;!--
google_ad_client = "ca-pub-4213001413639273";
google_ad_slot = "9449947075";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><ins style="display: inline-table; border: none; height: 90px; margin: 0; padding: 0;position: relative; visibility: visible; width: 728px; background-color: transparent"><ins style="display: block; border: none; height: 90px; margin: 0; padding: 0; position: relative;visibility: visible; width: 728px; background-color: transparent" id="aswift_1_anchor"><iframe width="728" scrolling="no" height="90" frameborder="0" style="left: 0; position: absolute;top: 0;" name="aswift_1" id="aswift_1" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}"allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0"></iframe></ins></ins></div><div class="tag"><script>                    dy("ny468x15");</script></div></div><!-- /content --></div>
</body>
</html>

页面效果:

html代码和js代码转换相关推荐

  1. js 监听 安卓事件_百行代码实现js事件监听实现跨页面数据传输

    百行代码实现js事件监听实现跨页面数据传输 使用场景 类似消息队列的使用场景,支持同页面和跨页面通信,发送消息和接收消息 技术原理 跨页面通信: 基于事件监听,通过监听 storage事件监听回调机制 ...

  2. “是男人就下一百层”h5游戏全网最详细教学、全代码,js操作

    "是男人就下一百层"h5游戏全网最详细教学.全代码,js操作 博主的话 游戏展示 编程工具介绍 游戏代码 代码讲解 js 第一步 切换div的显示与隐藏 js 第二步 在菜单页面用 ...

  3. 火星坐标、百度坐标、WGS84坐标转换代码(JS、python版)

    火星坐标.百度坐标.WGS84坐标转换代码(JS.python版) 一.JS版本源码 github:https://github.com/wandergis/coordTransform /*** C ...

  4. 一段代码看出JS的的解析到执行的顺序规则

    一段代码看出JS的的解析到执行的顺序规则 代码 function bar(a, b) {b = 3;var b;function b(){}console.log(a); // 打印出:10conso ...

  5. php网页悬浮对联代码,不用js多浏览器兼容纯DIV/CSS对联漂浮广告代码

    纯DIV/CSS对联漂浮广告代码(无JS) 源码网两侧漂浮.经测试,兼容IE6,IE7,Firefox浏览器. CSS代码为: .r1{width:80px;height:80px;backgroun ...

  6. js 读取php文件内容为空,PHP 读取文件内容代码(txt,js等)

    PHP 读取文件内容代码(txt,js等) 发布于 2014-10-15 20:15:37 | 128 次阅读 | 评论: 0 | 来源: 网友投递 PHP开源脚本语言PHP(外文名: Hyperte ...

  7. wxml代码支持js代码吗_如何取胜:代码支持者的建议

    wxml代码支持js代码吗 I had the honor of asking three of the world's most famous software engineers six ques ...

  8. 安卓录屏软件实现 开维PRA自动生成代码Ctrl.js

    安卓录屏软件实现 需求: 1.安卓手机下录制用户操作 2.录制后的动作可以修改 实现原理: 1.利用无障碍权限录制屏幕 2.记录用户点击.滑动等操作 3.将用户的操作转换为Ctrl.js代码实现 录制 ...

  9. 省市区(县)三级联动代码(js 数据源)

    ylbtech-JavaScript-Utility:省市区(县)三级联动代码(js 数据源) 省市区(县)三级联动代码(js 数据源) 1.A,源代码(Source Code)返回顶部 1.A.1, ...

最新文章

  1. 震精~python运算符还能这么玩~到底这么做到的?神级程序员解密!
  2. matlab中decnbr,LMI 求解时调用decnbr()函数得到的决策变量的个数为小数是为什么
  3. XLNet团队:赢BERT靠的并不是数据集更大,公平对决也碾压对手
  4. Android编译系统环境过程初始化分析【转】
  5. 如何解决ORA-12638: 身份证明检索失败错误
  6. 很少使用“ ControlFlowException”
  7. python pyquery安装_win7下python安装pyquery
  8. Java基础学习总结(59)——30 个java编程技巧
  9. 7.生产者消费者 案例 (使用Lock 同步锁 方式,使用Condition完成线程之间的通信)...
  10. Navicat 快捷键 for Mysql
  11. Git客户端Mac版:SmartGit
  12. Using TFS2010 Build 提示:Silverlight 4 SDK is not installed解决方法
  13. U-Mail邮件网关智能DNS技术,解决海外邮件接收问题
  14. Android Recovery OTA升级(二)—— Recovery源码解析
  15. python批量拷贝数据脚本_使用python来玩转ensp~3-写个批量备份配置文件脚本
  16. Hibernate的DetachedCriteria使用(含Criteria)转载
  17. Simulink:车辆换挡逻辑回顾_Demo
  18. C语言10以内加法口诀表,10以内加减法口诀表可打印.doc
  19. Java-Util之ArrayList
  20. 基于生态农业的电子商务微信小程序毕业设计(论文)

热门文章

  1. 电商项目——商品新增/修改
  2. 学会继承、多态、封装(1)——Java实现宠物店(领养宠物)
  3. chartjs实现最近两周网站访问量折线图
  4. 华中科技大学计算机副院长,华中科技大学计算机应用专业硕士生导师赵峰_计算机考研导师...
  5. 【每周一本书】之《深度学习核心技术与实践》:“小猿搜题”团队倾力之作...
  6. fullcalendar日历插件的使用并动态增删改查
  7. 计算机毕业设计(附源码)python寻迹边境丹东旅游网站
  8. 新版仿彩虹代刷网系统源码+亲测可用
  9. 【软件推荐】第1节:Micorsoft To Do
  10. 自己用js做一个搜索栏,超级简单