<html>
<head>
<script language="javascript">
function checkAd()
{
if ((event.srcElement.id == "ad1") || (event.srcElement.id == "ad2"))
{
//执行下一步
return confirm(event.srcElement.id + " " + event.srcElement.tagName + " " + event.srcElement.href);
}
else
{
//无反应
return false;
}
}
</script>
</head>
<body onClick="return checkAd()">
<a id="ad1" href="#" mce_href="#" target="_blank">这是广告一,点吧!哈哈……</a><br>
<a href="#" mce_href="#" target="_blank"><img id="ad2" src="http://www.sina.com.cn/images/logo.gif" border="0"></a>
</body>
</html>