缩小打印,好像没有这种功能..1.如何除到最顶上的页名和页码
文件->打印设置
把页眉和页脚都清除掉..用JavaScript实现,会有提示的..<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="YC">
<script language="VBScript">
dim hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
'//设置网页打印的页眉页脚为空
function pagesetup_null()
on error resume next
Set RegWsh = CreateObject("WScript.Shell")
hkey_key="\header"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
hkey_key="\footer"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
end function
'//设置网页打印的页眉页脚为默认值
function pagesetup_default()
on error resume next
Set RegWsh = CreateObject("WScript.Shell")
hkey_key="\header"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"&w&b页码,&p/&P"
hkey_key="\footer"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"&u&b&d"
end function
</script>
</HEAD> <BODY>
<br>
<br>
<br>
<br>
<br>
<br><p align=center>
<input type="button" value="清空页码" onclick=pagesetup_null()> <input type="button" value="恢复页吗" onclick=pagesetup_default()><br> </p>
</BODY>
</HTML>
文件->打印设置
把页眉和页脚都清除掉..用JavaScript实现,会有提示的..<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="YC">
<script language="VBScript">
dim hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
'//设置网页打印的页眉页脚为空
function pagesetup_null()
on error resume next
Set RegWsh = CreateObject("WScript.Shell")
hkey_key="\header"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
hkey_key="\footer"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
end function
'//设置网页打印的页眉页脚为默认值
function pagesetup_default()
on error resume next
Set RegWsh = CreateObject("WScript.Shell")
hkey_key="\header"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"&w&b页码,&p/&P"
hkey_key="\footer"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"&u&b&d"
end function
</script>
</HEAD> <BODY>
<br>
<br>
<br>
<br>
<br>
<br><p align=center>
<input type="button" value="清空页码" onclick=pagesetup_null()> <input type="button" value="恢复页吗" onclick=pagesetup_default()><br> </p>
</BODY>
</HTML>
别人在打开我网页时连接到另外一页面有的电脑上显示“是否关闭该页面”,有的没有(自动关闭),如何解决?不同版本是不一样的..<script>
function close1(){
closes.Click(); //ie4
}
function close2(){
window.opener=null; //ie5.5
window.close();
}
</script>
<input type="button" value="关闭" onclick="close1()">
<input type="button" value="关闭" onclick="close2()">
<object id="closes" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
<style>
@media print
{
toprint {display:block}
.noneprint{display:none}
}
} </style> <div class="toprint">要打印的</div>
<div class="noneprint">其他不打印</div>
最后,IE的打印功能很弱的.
页眉和页脚增加上两副图片,还要放大缩小打印.这些恐怕实现不了.
你可以用试一下打印组件.
----------------------------------------------------------------------------
晕!你要是实在不会,就用Dreamweaver来做。
<param name="movie" value="aaa.swf">
<param name="quality" value="high">
<embed src="aaa.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>
pluginspage="http://www.macromedia.com/go/getflashplayer"去?