链接类

VML

按钮类

标题类

表单类

表格类

菜单类

窗口类

对象类

滚动条

键盘类

框架类

例子类

模拟类

日期类

色彩类

鼠标类

数学类

图片类

文字类

下拉框

样式类

游戏类

状态栏

资料类

字幕类

其它类

 ·opener状态
 ·网页宽高
 ·Popup
 ·判断是刷新还是关闭
 ·全屏显示
 ·改变对话框的大小
 ·测试窗口是否打开
 ·showModalD...
 ·窗口自动居中
 ·窗口总是在最上层
您当前位置:好素材首页 -> 网页特效 -> 窗口类
查看信息

调试窗口
好素材网 www.HaoSc.com 02月22日 11:49

[查看演示]  源码如下
----------------------------------------------------------
<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>


<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div>


此信息共 1 页 [1]