我有一个冲击波闪存文件,需要将一些参数传递给它(我假设!),因为我实际上并没有深入参与这些东西。
嵌入到 HTML 页面时看起来像这样:
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css"/>
<script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("return false") </script>
</head>
<body>
<div id="main">
<object id="RadioPlayer" width="406" height="150" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" name="RadioPlayer" align="middle" bgcolor="#FFFFFF"><param name="_cx" value="5080" /><param name="_cy" value="5080" /><param name="FlashVars" value="serverHost=www.krykey.com&radio=24295&listUrl=" /><param name="Movie" value="http://www.krykey.com/swf/player/RadioPlayer.swf" /><param name="Src" value="http://www.krykey.com/swf/player/RadioPlayer.swf" /><param name="WMode" value="Transparent" /><param name="Play" value="0" /><param name="Loop" value="-1" /><param name="Quality" value="High" /><param name="SAlign" value="LT" /><param name="Menu" value="-1" /><param name="Base" value="" /><param name="AllowScriptAccess" value="sameDomain" /><param name="Scale" value="NoScale" /><param name="DeviceFont" value="0" /><param name="EmbedMovie" value="0" /><param name="BGColor" value="FFFFFF" /><param name="SWRemote" value="" /><param name="MovieData" value="" /><param name="SeamlessTabbing" value="1" /><param name="Profile" value="0" /><param name="ProfileAddress" value="" /><param name="ProfilePort" value="0" /><param name="AllowNetworking" value="all" /><param name="AllowFullScreen" value="false" /><param name="src" value="http://www.krykey.com/swf/player/RadioPlayer.swf" /><param name="flashvars" value="serverHost=www.krykey.com&radio=24295&listUrl=http://www.krykey.com" /><param name="wmode" value="transparent" /><param name="pluginspage" value="http://www.adobe.com/go/getflashplayer" /><param name="allowscriptaccess" value="sameDomain" /><param name="quality" value="high" /><param name="play" value="0" /><param name="loop" value="loop" /><param name="salign" value="LT" /><param name="menu" value="-1" /><param name="base" value="" /><param name="scale" value="NoScale" /><param name="devicefont" value="0" /><param name="embedmovie" value="0" /><param name="swremote" value="" /><param name="moviedata" value="" /><param name="seamlesstabbing" value="1" /><param name="profile" value="0" /><param name="profileaddress" value="" /><param name="profileport" value="0" /><param name="allownetworking" value="all" /><param name="allowfullscreen" value="false" /><embed id="RadioPlayer" width="406" height="150" type="application/x-shockwave-flash" src="http://www.krykey.com/swf/player/RadioPlayer.swf" _cx="5080" _cy="5080" FlashVars="serverHost=www.krykey.com&radio=24295&listUrl=" Movie="http://www.krykey.com/swf/player/RadioPlayer.swf" Src="http://www.krykey.com/swf/player/RadioPlayer.swf" WMode="Transparent" Play="0" Loop="-1" Quality="High" SAlign="LT" Menu="-1" Base="" AllowScriptAccess="sameDomain" Scale="NoScale" DeviceFont="0" EmbedMovie="0" BGColor="FFFFFF" SWRemote="" MovieData="" SeamlessTabbing="1" Profile="0" ProfileAddress="" ProfilePort="0" AllowNetworking="all" AllowFullScreen="false" flashvars="serverHost=www.krykey.com&radio=24295&listUrl=http://www.krykey.com" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="sameDomain" quality="high" play="0" loop="loop" salign="LT" menu="-1" base="" scale="NoScale" devicefont="0" embedmovie="0" swremote="" moviedata="" seamlesstabbing="1" profile="0" profileaddress="" profileport="0" allownetworking="all" allowfullscreen="false" name="RadioPlayer" align="middle" bgcolor="#FFFFFF" /></object>
</div>
</body>
</html>
这是“style.css”文件:
#main {
position: fixed;
top: -20px;
left: 0px;
width: 416px;
height: 150px;
}
如何将(swf 页面“或”html 页面)嵌入到我的 WPF 应用程序中,并使其看起来像是 WPF 应用程序本身的原始部分?
我不希望它看起来像只嵌入了一个外部 HTML 页面,它必须像我上面提到的那样,所以.. 有什么想法吗?