body里只有下面这个脚本,但是没有运行起来。非常头疼。
<script>
var ch="Merlin";
var obj_agent=new ActiveXObject("Agent.Control.2");
obj_agent.Connected=true;
obj_agent.Characters.Load(ch);
var och=obj_agent.Characters.Character(ch);
och.show();
och.moveTo(400,400);
och.Speak("Welcome To the ActiveX world");
</script>
<script>
var ch="Merlin";
var obj_agent=new ActiveXObject("Agent.Control.2");
obj_agent.Connected=true;
obj_agent.Characters.Load(ch);
var och=obj_agent.Characters.Character(ch);
och.show();
och.moveTo(400,400);
och.Speak("Welcome To the ActiveX world");
</script>
试试这个:
var objxml = new ActiveXObject("Microsoft.XMLHttp");
//IE7.0和FF没反应修改以下:
//xmlhttp_request = new ActiveXObject("Msxml2.XMLHTTP.3.0"); //3.0或4.0, 5.0
//xmlhttp_request = new ActiveXObject("Msxml2.XMLHTTP");
//xmlhttp_request = new ActiveXObject("Microsoft.XMLHTTP");