弹出窗口被屏蔽的解决办法推荐
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Popup Tester</title>
<script language=javascript >
function openWin(url)
{
var divId=document.getElementById('ErrorLog');
document.getElementById('ErrorLog').style.display="";
var sReturn = window.open(url);
if (sReturn == null)
{
ErrorLog.innerHTML = "<a href='"+url+"' target='_blank' onClick='divhidden()'>点击获取QQ美食卡</a>";
divId.style.left=(document.body.clientWidth-divId.clientWidth)/2+document.body.scrollLeft;
divId.style.top=(document.body.clientHeight-divId.clientHeight)/2+document.body.scrollTop;
}
}
function divhidden()
{
document.getElementById('ErrorLog').style.display="none";
}
</script>
</HEAD>
<body>
<div id=ErrorLog style="position:absolute;border:2px; display:none; z-index:2; width:150px; height:40; border:1px solid #FF0033; text-align:center; padding-top:10px; background-color:#FF9933">
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>a</td>
<td>w</td>
<td>w</td>
</tr>
<tr>
<td>w</td>
<td> </td>
<td>w</td>
</tr>
<tr>
<td>w</td>
<td> </td>
<td>w</td>
</tr>
<tr>
<td>w</td>
<td>w</td>
<td>w</td>
</tr>
</table>
</body>
</HTML>