<script>
function test()
{
var a=window.open("about:blank","","fullscreen=1")
a.resizeTo(400,400)
a.moveTo(100,100)
a.document.body.style.overflow='hidden'
}
</script>
<a href="#" onclick="javascript:test()">open</a>
function test()
{
var a=window.open("about:blank","","fullscreen=1")
a.resizeTo(400,400)
a.moveTo(100,100)
a.document.body.style.overflow='hidden'
}
</script>
<a href="#" onclick="javascript:test()">open</a>
解决方案 »
- 我想在每个记事本中的第150字后,第300字后,第450字后分别加入相同的三句话
- 关于选框非空判断的问题,请多指教
- 一个关于frame的问题
- 如何让复选框的外表长宽变大呀,你们的对号默认是黑色的,能换个颜色吗
- html中href指向值如何设为变量。
- 动态增加一行text filed.
- 请问如何在同个页面打开多个url
- 很久没问问题了,请教怎么样才能测试数据库连接成功,服务器语言必须用jscript
- 我想問如何可以通過javascript使一個(window.close)窗口關閉後,今打開它的頁自動刷新..謝高手
- 怎么用代码查询淘宝结果页里的宝贝数啊?
- 怎样在java脚本里面触发按钮的Submit事件!
- ?????????????????
<script>
function test()
{
var a=window.open("about:blank","","fullscreen=1")
a.resizeTo(400,400)
a.moveTo(100,100)
a.location="http://colorweb.go.163.com"
a.document.body.style.overflow='hidden'
}
</script>
<a href="#" onclick="javascript:test()">open</a>
<script language=javascript>minimizebar="minimize.gif"; //nbw窗口右上角最小化“按钮”的图片
closebar="close.gif"; //nbw窗口右上角关闭“按钮”的图片
icon="icon.gif"; //nbw窗口左上角的小图标function noBorderWin(fileName,w,h,titleBg,titleColor,titleWord,borderColor,scr)
/*
------------------参数说明-------------------
fileName :无边窗口中显示的文件。
w :窗口的宽度。
h :窗口的高度。
titleBg :窗口“标题栏”的背景色。
titleColor :窗口“标题栏”文字的颜色。
titleWord :窗口“标题栏”的文字。
borderColor:窗口“边框”的颜色。
scr :是否出现滚动条。取值yes/no或者1/0。
--------------------------------------------
*/
{
nbw=window.open('','','fullscreen=yes');
nbw.resizeTo(w,h);
nbw.moveTo((screen.width-w)/2,(screen.height-h)/2);
nbw.document.writeln("<title>"+titleWord+"</title>");
nbw.document.writeln("<"+"script language=javascript"+">"+"cv=0"+"<"+"/script"+">");
nbw.document.writeln("<body topmargin=0 leftmargin=0 scroll=no>");
nbw.document.writeln("<table cellpadding=0 cellspacing=0 width=100% height=100% style=\"border: 1px solid "+borderColor+"\">");
nbw.document.writeln(" <tr bgcolor="+titleBg+" height=20 onselectstart='return false' onmousedown='cv=1;x=event.x;y=event.y;setCapture();' onmouseup='cv=0;releaseCapture();' onmousemove='if(cv)window.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>");
nbw.document.writeln(" <td width=21 align=center><img width=12 width=12 src="+icon+"></td>");
nbw.document.writeln(" <td style=\"font-family:宋体; font-size:12px; color:"+titleColor+";\"><span style='top:1;position:relative;cursor:default;'>"+titleWord+"</span></td>");
nbw.document.writeln(" <td align=center width=30 style=font-size:16px;>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onclick=window.blur();>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=关闭 src="+closebar+" onclick=window.close();>");
nbw.document.writeln(" </td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln(" <tr>");
nbw.document.writeln(" <td colspan=3><iframe frameborder=0 width=100% height=100% scrolling="+scr+" src="+fileName+"></iframe></td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln("</table>");
}
</script>
</head><body>
<!----------------- 一个应用的例子 ----------------->
<button onclick=noBorderWin('','400','240','#000000','#CCCCCC','一个无边窗口的测试例子','#000000','no');>open</button>
</body></html>