8,734
社区成员
发帖
与我相关
我的任务
分享
function ShowFlash(Wd, Hg,xapName) {
document.write('<object id="silverlightControl" data="data:application/x-silverlight," type="application/x-silverlight-2" width="' + Wd + '" height="' + Hg + '">');
//document.write('<a class="viewDownLoad" href="ClientBin/Silverlight.2.0.exe"><img src="ClientBin/DownLoad.gif" border=0 alt=""/></a>');
document.write('<param name="source" value="ClientBin/' + xapName + '.xap"/>');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="onerror" value="onSilverlightError" />');
//document.write('<param name="background" value="transparent" />');
document.write('<param name="windowless" value="true" />');
document.write('<a href="Silverlight.2.0.exe" style="text-decoration: none;">');
document.write('<img src="images/load.bmp" alt="Get Microsoft Silverlight" style="border-style: none"/></a>');
document.write('</object>');
}