关于页面打印的问题 1,http://expert.csdn.net/Expert/TopicView2.asp?id=973599&datebasetype=now2,http://expert.csdn.net/Expert/TopicView2.asp?id=1294743&datebasetype=now 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 WEB打印的相关技术分析总结http://expert.csdn.net/Expert/topic/1428/1428024.xml?temp=.6602747 给个例子,别人的<HTML><HEAD><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT><script language="JavaScript">var hkey_root,hkey_path,hkey_keyhkey_root="HKEY_CURRENT_USER"hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"//设置网页打印的页眉页脚为空function pagesetup_null(){try{ var RegWsh = new ActiveXObject("WScript.Shell") hkey_key="header" RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"") hkey_key="footer" RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")}catch(e){}}//设置网页打印的页眉页脚为默认值function pagesetup_default(){try{ var RegWsh = new ActiveXObject("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")}catch(e){}}function to_print(){ pagesetup_null(); document.all.to_print.style.display="none"; document.all.to_review.style.display="none"; document.all.WebBrowser.ExecWB(6,6); document.all.to_print.style.display=""; document.all.to_review.style.display="";}</script></HEAD><BODY><br/><br/><br/><br/><br/><br/><p align=center><input type="button" name="to_print" value="打印" onclick="to_print()"><input type="button" name="to_review" value="恢复页码" onclick="pagesetup_default()"><br/></p></BODY></HTML> 求教一javascipt导航显示问题。 javascript prototype 问题,我理解的不是很深刻 如何实现一个链接只能从某一特定页面点击进去才有效 点击图片,在右侧滑动出现层,里面有1.htm。。。。急用,一定要帮忙呀! 求助,在客户端先判断“用户名”问题,先谢!! 用javascript写的从下往上滚动的字,能赋给多行文本框的value吗? 图片是如何嵌入到文字中的 如何用script语句把'替换成''? 相信未来 记住密码功能 如何使一个提交按钮在处理的 onClick 事件后仍具有提交能力?[50分] 关于jqgrid的单元格默认值问题
http://expert.csdn.net/Expert/topic/1428/1428024.xml?temp=.6602747
<HTML><HEAD>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
<script language="JavaScript">
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
//设置网页打印的页眉页脚为空
function pagesetup_null(){
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
}catch(e){}
}
//设置网页打印的页眉页脚为默认值
function pagesetup_default(){
try{
var RegWsh = new ActiveXObject("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")
}catch(e){}
}
function to_print()
{
pagesetup_null();
document.all.to_print.style.display="none";
document.all.to_review.style.display="none";
document.all.WebBrowser.ExecWB(6,6);
document.all.to_print.style.display="";
document.all.to_review.style.display="";
}
</script>
</HEAD><BODY><br/><br/><br/><br/><br/><br/><p align=center>
<input type="button" name="to_print" value="打印" onclick="to_print()">
<input type="button" name="to_review" value="恢复页码" onclick="pagesetup_default()"><br/>
</p></BODY></HTML>