<html> <head> <SCRIPT> <!-- function crml(nid) { try { nid=new ActiveXObject("Agent.Control.2"); nid.Connected = true; nid.Characters.Load(""); return nid; } catch (err) { return false; } }
function chplay () { if (ml=crml ("ml")) { var MerlinID; var MerlinACS; Merlin = ml.Characters.Character(MerlinID); Merlin.MoveTo(200,200); Merlin.Show(); Merlin.Play("Explain"); Merlin.Play("Announce"); Merlin.Speak("欢迎你来到jojoo电脑频道!"); Merlin.Play("Gestureright"); Merlin.Play("Pleased"); Merlin.Speak("我们的网址:www.master163.com"); Merlin.Play("Idle1_1"); Merlin.Hide(); Merlin.MoveTo(600,300); Merlin.Show(); Merlin.Play("Surprised"); Merlin.Speak("JOJOO论坛 http://www.master163.com"); Merlin.Play("Read"); Merlin.Speak("还多了一个专门的电脑技术论坛"); Merlin.Play("Read") Merlin.Play("GestureUp"); Merlin.Speak("网址是:Http://www.master163.com希望大家会喜欢"); Merlin.Play("DontRecognize"); Merlin.Speak("感谢您的到来"); Merlin.Play("DontRecognize"); Merlin.Play("Greet"); Merlin.Speak("提前祝你圣诞快乐!"); Merlin.Play("Greet"); Merlin.Speak("下次再见!"); Merlin.Play("Greet"); Merlin.Hide(); } } //--> </SCRIPT> <SCRIPT> <!-- chplay() --> </SCRIPT> </head> </html> 这是一个很酷的动画,请问如何把它转换为.js文件?