在B/S中常用JavaScript(实用型)
2010-09-14 13:19:26 来源:WEB开发网<script Language="&#106avascript">
function winopen1(){
打开的窗口名=open("nb","Homepage","toolbar=no,location=no,
directories=no,status=no,menubar=no,scrollbars=no,resizable=no,
copyhistory=no,width=160,height=200,left=200,top=100"; }
</script><a href &#111nMouseOver="winopen1();return true;"&#111nMouseOut="打开的窗口名.close();">
<p>这里是连接</a></p>
10.固定背景图不动
<style>
body{background-image:url(logo.gif);
background-repeat:no-repeat;background-position:center}
</style>
11.让浏览器在保存页面时保存失败
<NOSCRIPT><iframe src="*.html"></iframe></NOSCRIPT>
12.网页自动关闭
<html>
这个窗口会在10秒过后自动关闭,而且不会出现提示.
<head>
<object id=closes type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" &#118alue="Close">
</object>
</head>
<body onload="window.setTimeout('closes.Click()',10000)">
</body>
</html>
1. oncontextmenu="window.event.return&#118alue=false" 将彻底屏蔽鼠标右键
Tags:常用 JavaScript 实用型
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接