本日志以一个silverlight播放器为实例
1)HTML
<!DOCTYPE HTML PUBliC "-//W3C//DTD xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml" >
<head>
<Title></Title>
</head>
<body>
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" wIDth="400" height="300">
<param name="source" value="ClIEntBin/VIDeoPlayer.xap"/>
<param name="background" value="black" />
<param name="initParams" value="m=http://localhost:1808/ClIEntBin/成都全搜索小记者参观马士基和丹马士.wmv,autohIDe=false,autostart=true" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="autoUpgrade" value="true" />
<a href="ClIEntBin/Silverlight.rar" >
<img src="ClIEntBin/InstallSilverlight.png" alt="下载Silverlight" />
</a>
</object>
</body>
</HTML>
2)aspx
<%@ Page Language="C#" autoEventWireup="true" CodeBehind="WebForm1.aspx.cs" inherits="WebApplication5.WebForm1" %>
<!DOCTYPE HTML PUBliC "-//W3C//DTD xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <Title></Title></head><body> <form ID="form1" runat="server"> <div> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" wIDth="400" height="300"> <param name="source" value="ClIEntBin/VIDeoPlayer.xap"/> <param name="background" value="black" /> <param name="initParams" value="m=http://localhost:1808/ClIEntBin/成都全搜索小记者参观马士基和丹马士.wmv,autostart=true" /> <param name="minRuntimeVersion" value="2.0.31005.0" /> <param name="autoUpgrade" value="true" /> <a href="ClIEntBin/Silverlight.rar" > <img src="ClIEntBin/InstallSilverlight.png" alt="下载Silverlight" /> </a> </object> </div> </form></body></HTML>
总结以上是内存溢出为你收集整理的silverlight 应用程序在html或aspx里部署全部内容,希望文章能够帮你解决silverlight 应用程序在html或aspx里部署所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)