这个怎么在IE8里支持,在谷歌就不行呢。有没有办法让他们兼容呢 求各路大神告知!!!
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script>
function demo(){
test1.focus();
var WshShell = new ActiveXObject("Wscript.Shell");try {
WshShell.SendKeys("%{DOWN}");
} catch(e){}
WshShell.Quit;
}function demo1(){
test2.focus();
var WshShell = new ActiveXObject("Wscript.Shell");
try {
WshShell.SendKeys("%{DOWN}");
} catch(e){}
WshShell.Quit;
}
</script>
<select id="test1" onChange="demo1()">
<option value="dd">
dd
</option>
<option value="qq">
qq
</option>
</select>
<select id="test2">
<option value="cc">
cc
</option>
</select>
<a onclick='demo();'>点击</a>
</body>
</html>js 兼容 selecthtml
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script>
function demo(){
test1.focus();
var WshShell = new ActiveXObject("Wscript.Shell");try {
WshShell.SendKeys("%{DOWN}");
} catch(e){}
WshShell.Quit;
}function demo1(){
test2.focus();
var WshShell = new ActiveXObject("Wscript.Shell");
try {
WshShell.SendKeys("%{DOWN}");
} catch(e){}
WshShell.Quit;
}
</script>
<select id="test1" onChange="demo1()">
<option value="dd">
dd
</option>
<option value="qq">
</option>
</select>
<select id="test2">
<option value="cc">
cc
</option>
</select>
<a onclick='demo();'>点击</a>
</body>
</html>js 兼容 selecthtml
一一网:http://www.yiyinet.net