<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <html> <head> <title>JavaScript容错脚本</title> <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px} A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline } a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head>
<body> <SCRIPT LANGUAGE="JavaScript"> <!-- Hide
function killErrors() { return true; }
window.onerror = killErrors;
// --> </SCRIPT> <br> <br> <center><font color=red face="隶书" size=6>JavaScript容错脚本</font></center> <br> <br><center> <table border=5 bordercolor=blue borderlight=green> <tr><td align=center> <font face="Arial, Helvetica, sans-serif" style="font-size: 9pt"> <strong style="font-weight: 400">加入了这段代码,就不会有脚本出错提示出现!</strong></font></td></tr> </table></center> <br> <br> <center> <SCRIPT LANGUAGE="JavaScript">
<!-- hide
function goHist(a)
{
history.go(a);
}
//-->
</script></center> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="360" id="AutoNumber1"> <tr> <td> <p align="left"><span style="font-size: 9pt">把如下代码加入<body>区域中<br> <font color="#FF0033"><br> <SCRIPT LANGUAGE="JavaScript"><br> <!-- Hide<br> <br> function killErrors() {<br> return true;<br> }<br> <br> window.onerror = killErrors;<br> <br> // --><br> </SCRIPT></font></span></td> </tr> </table> </center> </div> <br> <br> </body> </html>
补充:网页特效,综合特效
上一个:访问表格的每个TD下一个:百页窗效果