COM interface programming with JavaScript to invoke Microsoft Agent in HTML documents

Source: Internet
Author: User
Tags microsoft frontpage
COM interface programming with JavaScript to invoke Microsoft Agent in HTML documents
Try the following code to see what the effect is:
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 4.0" >
<meta name= "ProgId" content= "FrontPage.Editor.Document" >
<title>new Page 2</title>
<object Id=yuzi classid=clsid:d45fd31b-5c6e-11d1-9ec1-00c04fd7081f width= "height=" ></OBJECT>
<SCRIPT>
var Merlinid;
var Merlinacs;
Yuzi. Connected = true;
merlinloaded = Loadlocalagent (Merlinid, Merlinacs);
Merlin = Yuzi. Characters.character (Merlinid);
Merlin.show ();
Merlin.play ("surprised");
Merlin.speak ("Welcome to my Home");
Merlin.play ("Gestureleft");
Merlin.think ("This is a personal site");
Merlin.play ("pleased");
Merlin.think ("Hope to bring you some convenience and happiness");
Merlin.play ("Gesturedown");
Merlin.speak ("Thank you for coming!") Please come often later! ");
Merlin.hide ();
function Loadlocalagent (Charid, Characs) {
Loadreq = Yuzi. Characters.load (Charid, Characs);
return (true);
}
</SCRIPT>
<body>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.