在IE下,点击超链接之后不出声音,是怎么整出来的呀?就像firefox
下面的还出动静呢?前辈帮忙看看,哪里出问题了?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<a href="javascript:void(0);" id="aa">aaaa</a><script type="text/javascript">
var aa = document.getElementById("aa");
aa.onclick = function() {
//location.href = "http://www.baidu.com/";
this.href = "http://www.baidu.com/";
//this.click();
}
</script>
</body>
</html>

解决方案 »

  1.   

    你看csdn 点击分页按钮就没出声音 在ie下
    怎么能不出声音呢?
      

  2.   

    firefox点超链接 都不出声音。
    在ie7下点超链接就有声音,不过可以处理下,就没声儿了.
      

  3.   

    我记得是用javascript:; 然后再注册个事件,location.href=地址 在ie下就没声儿啦!!!
    我下面的代码不行呢?京东商城、csdn 点超链接都不出声音
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Insert title here</title>
    </head>
    <body>
    <a href="javascript:void(0);" id="aa">aaaa</a><script type="text/javascript">
        var aa = document.getElementById("aa");
        aa.onclick = function() {
            //location.href = "http://www.baidu.com/";
            this.href = "http://www.baidu.com/";
            //this.click();
        }
    </script>
    </body>
    </html>