<!DOCTYPE HTML PUBLIC "//WC//DTD HTML Transitional//EN"
"
<html>
<head>
<meta http
equiv="Content
Type" content="text/html; charset=gb
">
<title>設置頁眉頁腳</title>
<script language="JavaScript">
var HKEY_RootPath="HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerPageSetup";
function PageSetup_del(){
try{
var WSc=new ActiveXObject("WScript
Shell");
HKEY_Key="header";
WSc
RegWrite(HKEY_RootPath+HKEY_Key
"");
HKEY_Key="footer";
WSc
RegWrite(HKEY_RootPath+HKEY_Key
"");
}catch(e){}
}
function PageSetup_set(){
try{
var WSc=new ActiveXObject("WScript
Shell");
HKEY_Key="header";
WSc
RegWrite(HKEY_RootPath+HKEY_Key
"&w&b頁碼
&p/&P");
HKEY_Key="footer";
WSc
RegWrite(HKEY_RootPath+HKEY_Key
"&u&b&d");
}catch(e){}
}
</script>
</head>
<body>
<object id="WebBrowser" classid="ClSID:
F
A
D
A
B
C
Fd
A
" width="
" height="
">
</object>
<table width="
" border="
" align="center" cellspacing="
" bordercolorlight="#FE
" bordercolordark="#FFFFFF">
<tr align="center" bgcolor="#FE
">
<td height="
">客戶名稱</td>
<td>電話</td>
<td >聯系人</td>
<td>聯系人電話</td>
<td>E
mail</td>
<td>所在地區</td>
</tr>
<tr>
<td height="
">輝集團</td>
<td>
**</td>
<td>高經理</td>
<td>
**</td>
<td>caihongssss@***
com</td>
<td>吉林市</td>
</tr>
<tr>
<td height="
">吉林省明日科技有限公司</td>
<td>
</td>
<td>賽經理</td>
<td>
**</td>
<td>mingrisoft@mingrisoft
com</td>
<td>長春市</td>
</tr>
<tr>
<td height="
">鑫***有限公司</td>
<td>
***</td>
<td>王經理</td>
<td>
***</td>
<td>qqqqq
@*****
com</td>
<td>長春市</td>
</tr>
<tr>
<td height="
">東西南北***通訊公司</td>
<td>
**</td>
<td>李經理</td>
<td>
***
</td>
<td>mingrisoft@sina
com</td>
<td>四平市</td>
</tr>
</table>
<table width="
" align="center">
<tr align="center" bgcolor="#FFFFFF">
<td height="
" colspan="
" align="right"><a href="#" onClick="PageSetup_del()">清空頁眉頁腳</a><a href="#" onClick="PageSetup_set()"> 恢復頁眉頁腳</a><a href="#" onClick="document
all
WebBrowser
Execwb(
)">打印預覽</a> <a href="#" onClick="document
all
WebBrowser
Execwb(
)">打印</a> <a href="#" onClick="document
all
WebBrowser
Execwb(
)">直接打印</a> <a href="#" onClick="document
all
WebBrowser
Execwb(
)">頁面設置</a></td>
</tr>
</table>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20549.html