欢迎你的访问
 
返回天空素材库首页 http://www.Skysucai.com  
收藏本站
将本站设为首页
您当前的位置:天空素材首页 -> 调试窗口
 
栏 目 导 航
. 常用代码 . 综合特效
. 状态特效 . 游戏特效
. 页面背景 . 页面特效
. 页面导航 . 文本操作
. 文本特效 . 图形特效
. 鼠标特效 . 时间日期
. 密码特效 . 浏览相关
. 警告对话 . 技巧特效
. 计数转换 . 测试搜索
. 代码生成 . 播放音乐
. 按钮特效 . 系统相关
. 链接特效 . 黑客性质
. 相关特效 . 窗口特效
. 广告特效 . 表单表格
. 模拟例子
相 关 文 章
本 类 热 门
· 捕获关闭按钮
· 疯狂窗口
· 调试窗口
· 定时刷新页面
· 激活窗口
· 窗口总是在最上层
· 窗口自动居中
· showModalDialog Meth...
· 测试窗口是否打开
· 改变对话框的大小
· 全屏显示
· 判断是刷新还是关闭
更多  
 
 
更多  
最 新 推 荐
· 状态栏时间跳动特效
· 农历挂历特效
· 真正的万年历
· 网页特效 菜单-会动的...
· 网页特效 时间-任意位...
· 个人网页特效-有前后日...
· 时间每过一秒,Radio就...
· 时钟显示在任意指定位...
· 带开关的Form时钟
· 记录几天后的日期
· 显示登陆时间
· 退出时显示访问时间
更多  
     
调试窗口
调试窗口
作者:无  来源:本站整理  名称:调试窗口 

减小字体 增大字体

       

[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]

此特效的详细完整代码如下:
]  源码如下
----------------------------------------------------------
<HTML>
<HEAD>
<TITLE>调试源文件:::http://www.51windows.com-www.51windows.Net</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style>
input{ font-family: verdana; font-size: 10pt; color: #000080; border: 1 solid #000000 }
body{ font-family: tahoma; font-size: 9pt; color: #000000}
textarea{ font-family: tahoma; font-size: 9pt; color: blue;border: 1 solid #000000;}
</style>
</HEAD>
<BODY bgColor=#F3F2F1 leftMargin=0 marginwidth="0" onload=tp()>
<SCRIPT language=JavaScript>
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;
function generate() /* Generation of "Compilation" */
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='Compiling...Please wait!';
setTimeout("compile()",500);
}
else alert('First enter something to compile and then press CompileIt')
}
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++;
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('Nothing for be selected!')
}
function preview() /* Preview for the "Compilation" */
{
if(document.pad.text.value.length>0)
{
pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=480 height=320,left=10,top=10");
pr.document.write(document.pad.text.value);
}
else alert('Nothing for be previewed!')
}
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('You need compiled code to uncompile it!')
}
// -->
</SCRIPT>
<script>
function tp()
{pad.text.focus()
document.execCommand("Paste")}
function savetxt() {
var newwin=window.open('about:blank','','top=10000');
newwin.document.write(document.pad.text.value);
newwin.document.execCommand('saveas','','c_d.htm')
newwin.window.close();}
</script>
<FORM method=post name=pad align="center">
<p align="center"><TEXTAREA cols=120 name=text rows=22 style="background-color: #336699; color: #FFFFFF"></TEXTAREA><BR><p align="center">
<INPUT name=select onclick=tp() type=button value=粘贴>
<INPUT name=select onclick=selectCode() type=button value=选定>
<INPUT name=view onclick=preview() type=button value=预览(w) accesskey=w>
<INPUT name=compileIt onclick=generate() type=button value=加密>
<INPUT name=retur onclick=uncompile() type=button value=解密>
<INPUT name=retur onclick=savetxt() type=button value=保存(s) accesskey=s>
<INPUT name=clear type=reset value=清除></FORM>
<p align="center"><span style="cursor:hand" onclick=open('http://www.51windows.com','','')>无忧视窗:http://www.51windows.com</p>
</BODY>

[返回上一页] [打印调试窗口]
上一篇特效:定时刷新页面
下一篇特效:疯狂窗口
     
| 关于本站 | 服务条款 | 友情连接 | 网站地图 | 联系方式 | 广告联系 |