嵌入Silverlight,像闪光灯一样吗? [英] embedding silverlight, anything like flash?

查看:66
本文介绍了嵌入Silverlight,像闪光灯一样吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,如果我有一个Flash对象(例如youtube视频),则可以很容易地将其嵌入到网站中(我想是因为它是Flash,而不是youtube,可能是我错了?)。

So if I have a flash object, like a youtube video, I can embed that on a website pretty easily (I think because that's flash, not necassarily youtube, maybe I'm wrong?).

我希望能够在静态html页面(例如我的博客,它不是xap文件所在的站点)上放置silverlight对象/嵌入标签(没有javascript),并完成它。

I'd like to be be able to drop a silverlight object/embed tag (no javascript) on a static html page (like my blog, which is not the site with the xap file), and be done with it.

基本上,除非您可以将自定义javascript添加到您的网站,否则看来这是零方式。我找到了此链接: http:// msdn。 microsoft.com/en-us/library/cc189089(VS.95).aspx

Basically it seems like there is zero way to do this unless you can add custom javascript to your site. I've found this link: http://msdn.microsoft.com/en-us/library/cc189089(VS.95).aspx.

对此真的感到困惑。

推荐答案

您可以仅使用一个对象标签来实现。 MSDN示例中使用的JavaScript是打印在加载应用程序时发生的任何错误(尽管它们通常通常会在浏览器状态栏中显示为警告)。

You can do it with just an object tag. The JavaScript used in the MSDN example is to print any errors that occur while loading the application (though they usually just end up as warning in the browser's status bar).

我建议的最小代码段可能看起来像这样:

The minimum snippet I would recommend might look like:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
    width="200px" height="200px">
    <param name="source" value="URL/To/SilverlightApp.xap" />
    <param name="minRuntimeVersion" value="2.0.31005.0" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
        <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
            style="border-style: none" />
    </a>
</object>

这篇关于嵌入Silverlight,像闪光灯一样吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆