- <SCRIPT type=text/javascript>
- function copyText(obj)
- {
- var rng = document.body.createTextRange();
- rng.moveToElementText(obj);
- rng.scrollIntoView();
- rng.select();
- rng.execCommand("Copy");
- rng.collapse(false);}
- </SCRIPT><span id="tbid"><a onclick="copyText(document.all.tbid)" href="#" title="点击复制">http://forum.lemuria.com.cn/</a></span>
复制代码- <!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" lang="zh-CN">
- <head>
- <title>Lemuria大地 - 代码测试</title>
- <SCRIPT>
- function Preview(obj)
- {
- var TestWin=open('');
- TestWin.document.write(obj.value);
- }
- function copyCode(obj) {
- var rng = document.body.createTextRange();
- rng.moveToElementText(obj);
- rng.scrollIntoView();
- rng.select();
- rng.execCommand("Copy");
- rng.collapse(false);
- }
- function saveCode(obj) {
- var winname = window.open('', '_blank', 'top=10000');
- winname.document.open('text/html', 'replace');
- winname.document.writeln(obj.value);
- winname.document.execCommand('saveas','','html.htm');
- winname.close();
- }
- </SCRIPT>
- </head>
- <body><div><center><b>网络百宝箱 - 代码运行测试</b><br><br>
- <TEXTAREA id=code2 style="WIDTH: 570px; HEIGHT: 244px" rows=15 cols=47>
- <html>
- <head>
- <style>
- a {text-transform:none;text-decoration:none;}
- a:hover {text-decoraction:underline}
- </style>
- <LINK title=CSS href="http://box.fohee.net/js/g.css" type=text/css rel=StyleSheet>
- <title>沸腾网络 -网络百宝箱</title></head>
- <body>欢迎访问<a href="../" target="_blank" title="沸腾网络 -网络百宝箱">沸腾网络 -网络百宝箱</a><script src="http://js.tongji.linezing.com/1229594/tongji.js" type="text/javascript"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1229594/tongji.gif"/></a></noscript>
- <hr size="1" noshade="noshade" style="border:1px #cccccc dotted"/>
- <iframe width=100% height=570 frameborder=0 scrolling=auto
- src="http://www.fohee.net"></iframe></body>
- </html>
- </TEXTAREA>
- <BR>
- <BUTTON onclick=Preview(code2)>运行代码</BUTTON>
- <BUTTON onclick=copyCode(code2)>复制代码</BUTTON>
- <BUTTON onclick=saveCode(code2)>另存代码</BUTTON>
- </div>
- Copyright © 2009 <a href="http://www.fohee.net" target="_blank" title="沸腾网络">沸腾网络</a> All Rights Reserved<br>
- <a href="http://www.miibeian.gov.cn/" target="_blank">渝ICP备09005731号</a><script src="http://js.tongji.linezing.com/1229594/tongji.js" type="text/javascript"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/1229594/tongji.gif"/></a></noscript>
- </body>
- </html>
复制代码 演示http://box.fohee.net/html/ |