Skip to content Skip to sidebar Skip to footer

Embedding Silverlight, Anything Like Flash?

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?). I'd like t

Solution 1:

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">
    <paramname="source"value="URL/To/SilverlightApp.xap" /><paramname="minRuntimeVersion"value="2.0.31005.0" /><ahref="http://go.microsoft.com/fwlink/?LinkID=124807"style="text-decoration: none;"><imgsrc="http://go.microsoft.com/fwlink/?LinkId=108181"alt="Get Microsoft Silverlight"style="border-style: none" /></a>
</object>

Post a Comment for "Embedding Silverlight, Anything Like Flash?"