加入收藏 | 设为首页 | 会员中心 | 我要投稿 湖南网 (https://www.hunanwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程 > 正文

网页建造有效的代码

发布时间:2020-03-16 15:41:04 所属栏目:编程 来源:站长网
导读:叨教怎样去掉主页右面的转动条? body scroll=no body style=overflow-y:hidden ******************************** 奈何不行使页面的缓存?即每一次打开页面时不是挪用缓存中的对象 META HTTP-EQUIV=Pragma CONTENT=no-cache ****************************

叨教怎样去掉主页右面的转动条?
<body scroll="no">
<body style="overflow-y:hidden">
********************************
奈何不行使页面的缓存?即每一次打开页面时不是挪用缓存中的对象
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
********************************
叨教怎样忽视右键?
<body oncontextmenu="return false">
********************************
奈何在统一页面内节制差异链接的CSS属性?
a:active{}
a:link{}
a:visited{}
a.1:active{}
a.1:link{}
a.1:visited{}
在DW的CSS中界说一个新的标示,凭证HTML的语法,超等毗连得是
A.YOURS:LINK A.YOURS:HOVER
YOURS可以改作你本身的字
然后在选中某个毗连后,在CSS面版中点中YOURS即可。
按必要,你可以界说N个标示,N种鼠标OVER的结果
********************************
电子邮件处理赏罚提交表单
<form name="form1" method="post" action="mailto:webmaster@jb51.net" enctype="text/plain">
<input type=submit>
</form>
********************************
有没有也许用层来遮住FLASH?
1.在flash的parameters里插手 <param name="wmode" value="transparent">
2.<body onblur=self.focus()>
********************************
怎样按照屏幕判别率挪用相对应的页面?
onclick=alert("你的表现分辩率为:" screen.width "×" screen.height)
先做好几个页面,好比一个htm1.htm是800*600,一个是htm2.htm是1024*768的
然后在你的进口页面 index.htm 中判定:
<html>
<head>
<script language=javascript>
<!--
function mHref() {
if (screen.width == 1024) location.href = "htm2.htm";
else if (screen.width == 800) location.href = "htm1.htm";
else return(false);
}
//-->
</script>
</head>
<body onload="mHref();">
</body>
</html>
********************************
怎样弹出只有状态栏的窗口?
<html>
<head>
<title>open() close()</title>
<script language="javascript" type="text/javascript">
<!--
function openWin()
{
var newWin=open("","","menubar=1,height=200");
newWin.document.write("<form>");
newWin.document.write("单击以下按钮封锁窗口:<p>");
newWin.document.write("<input type=button value='封锁' onclick=window.close()>");
newWin.document.write("</form>");
}
</script></head>
<body>
<div align=center>
<h2>单击以下按钮表现新窗口...</h2>
<form name=form1>
<input type=button value="新窗口1[只表现地点栏]" onclick=window.open('','new1','location=1')>
<input type=button value="新窗口2[只表现状态栏]" onclick=window.open('','','status=1')>
<input type=button value="新窗口3[只表现器材栏]" onclick=window.open('','new2','toolbar=1,height=200,width=450')>
<input type=button value="新窗口4[只表现菜单栏]" onclick=openWin()>
<input type=button value="新窗口5[一个不少]" onclick=window.open('','new5')>
<input type=button value="新窗口6[王老五骗子但可调巨细]" onclick=window.open('https://www.jb51.net/forumdisplay.php?forumid=32#thread','new6','resizable=1')>
</form>
</div>
</body>
</html>

1

(编辑:湖南网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读