教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 范文大全 > 公文资料 >

【网页特效代码-浏览特效】打开一个无边的窗口,效果也是很酷的,

来源:网络收集 时间:2026-09-04
导读: 【网页特效代码-浏览特效】打开一个无边的窗口,效果也是很酷的,看看 【网页特效代码-浏览特效】打开一个无边的窗口,效果也是很酷的,看看.txt为什么我们在讲故事的时候总要加上从前?开了一夏的花,终落得粉身碎骨,却还笑着说意义。script language=javascri

【网页特效代码-浏览特效】打开一个无边的窗口,效果也是很酷的,看看

【网页特效代码-浏览特效】打开一个无边的窗口,效果也是很酷的,看看.txt为什么我们在讲故事的时候总要加上从前?开了一夏的花,终落得粉身碎骨,却还笑着说意义。<script language=javascript>
minimizebar="photo/minimize0604.gif"; //nbw窗口右上角最小化“按钮”的图片
closebar="photo/close0604.gif"; //nbw窗口右上角关闭“按钮”的图片
icon="photo/icon0604.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=300 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=left><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=right 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>
<!----------------- 一个应用的例子 ----------------->
<button o
nclick=noBorderWin('http://www.77cn.com.cn','300','240','#000000','#CCCCCC','一个无边窗口的测试例子','#000000','no');>打开无边窗口</button>
QQ291911320

…… 此处隐藏:275字,全部文档内容请下载后查看。喜欢就下载吧 ……
【网页特效代码-浏览特效】打开一个无边的窗口,效果也是很酷的,.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/fanwen/710446.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)