如何让网页中跳出一个会说话的老人
<script>
//创建 ActiveX 控件对象并设为下面语句的默认对象
with(new ActiveXobject("Agent.Control.2")){
Connected = true //启动与 Microsoft Agent 的连接
/*读入要使用的角色,第一个参数是角色的名字,第二个参数是角色存储的文件。Microsoft Agent角色都保存在系统目录下的 MSAgent 文件夹中的 chars 文件夹内,一般情况下其文件名与角色名是相同的角色文件的扩展名是.acs*/
Characters.Load("Merlin","Merlin.acs")
//以变量 Merlin 返回角色的操纵句柄
var Merlin = Characters.Character("Merlin")
}
with(Merlin){
MoveTo(0,0)
Show()
Play("Explain")
Play("Announce")
Speak("欢迎光临!随便看看~~")
Play("Gestureright")
Play("Idle1_1")
MoveTo(screen.width-100,screen.height-130)
Play("Surprised")
Play("Read")
Play("GestureUp")
Play("DontRecognize")
Play("Greet")
Speak("看完之后记得:")
Play("Write")
Speak("给我留言")
Play("Pleased")
Hide()
}
</script>
您的发贴和回贴,是对落伍和太极的最大支持和鼓励.
如果有问题,也可以留言