源代码如下: |
| <html><head><title>示范</title> <meta http-equiv=content-type content="text/html; charset=gb2312"> </head> <body bgcolor=#ffffff> <p><object id=yancey style="left: 0px; top: 0px" classid=clsid:f5be8bd2-7de6-11d0-91fe-00c04fd701a5 viewastext> </object> <script> var merlinid; var merlinacs; yancey.connected = true; merlinloaded = loadlocalagent(merlinid, merlinacs); merlin = yancey.characters.character(merlinid); merlin.show(); merlin.moveto(window.screen.width/2-50,window.screen.height/2-50); merlin.play("greet"); merlin.speak("欢迎来到http://yousoft.home.chinaren.com/"); merlin.play("congratulate"); merlin.play("write"); merlin.speak("呵呵......"); merlin.play("suggest"); merlin.moveto(window.screen.width,window.screen.height); merlin.hide(); function loadlocalagent(charid, characs) { loadreq = yancey.characters.load(charid, characs); return(true); } function merlinplay(word) { merlin.show(); merlin.play("suggest"); merlin.speak(word); merlin.hide(); } </script> </p></body></html> |