用Javascript转换源代码
来源:互联网 发布:淘宝上卖食品怎么认证 编辑:程序博客网 时间:2024/05/26 02:54
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
例子:
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
</textarea><br>
<input type="button" onclick="txt=document.all.n1.value;hh()" value="转换">
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
用Javascript转换源代码
源代码如下:
<textarea style="width:500;height:200" name="n1">例子:
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
</textarea><br>
<input type="button" onclick="txt=document.all.n1.value;hh()" value="转换">
<script>
txt="";txt2="";txt3="";num=0
function hh(){
document.all.n1.value=Math.floor(num/txt.length*100)+"%"
txt3=txt.charAt(num)
if(txt3 == " "){txt3=" "};if(txt3 == "&"){txt3="&"};if(txt3 == """){txt3="""};if(txt3 == "<"){txt3="<"};if(txt3 == ">"){txt3=">"}
txt2=txt2+txt3
num++;if(num != txt.length){setTimeout("hh()",1)};else{document.all.n1.value=txt2}
}
</script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 用Javascript转换源代码
- 用Javascript转换源代码
- 用Javascript转换源代码
- HTML源代码字符转换
- JavaScript精品源代码
- javascript--第二天源代码
- javascript---第三天源代码
- javascript查看网页源代码
- javascript 源代码 格式化 工具
- JavaScript源代码格式化工具
- javascript游戏-- 俄罗斯方块 源代码
- javascript游戏--扫雷 源代码
- javascript源代码格式化工具
- javascript游戏-- 俄罗斯方块 源代码
- 每周轮班javascript源代码
- javascript看源代码
- javascript分页源代码
- javascript源代码(实例60)
- HTML文档中用JavaScript调用Microsoft Agent的COM接口
- 如何在Oracle10g中启动和关闭OEM
- web-xml与server-xml配置不同形成应用不同的访问方式
- 如果你想打开一个新页面时给浏览者一些惊喜的话,试试
- SQL Server 2000之日志传送功能-设定
- 用Javascript转换源代码
- MS SQL SERVER 图像或大文本的输入输出
- JavaScript修改注册表
- Microsoft SQL Server 7.0安全问题
- 卷帘一样的文字显示效果,为你的网页增加不少生色哦!
- Microsoft SQL Server 7.0数据库升级转换问题
- JavaScript窗口功能指南之定制新窗口
- Microsoft SQL Server 7.0 备份及恢复相关问题
- JavaScript窗口功能指南之引用已打开的窗口