我是flex或.swf的新手。 我试图嵌入.swf文件,但它不显示 请告诉我,我会做什么,以便显示 请告诉我,如果我的.swf在bin文件夹中,那么我如何在页面上显示?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<wicket:extend>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chart.....</title>
</head>
<body>
<form wicket:id="ChartForm">
<table border="0" align="center" bgcolor=#488AC7 bordercolor="#25383C" width="93%">
<tr align="center">
<td colspan="2" align="right"><font size="2" color="#151B8D"><b><wicket:message key="SEARCHBYSYMBOL"></wicket:message></b></font></td>
<td colspan="4" align="left" >
<input name="symbol" id="symbol" type="text" value="" size="25" wicket:id="txtSymbol" />
<input type="submit" wicket:id="btnSymbolsubmit" style=" width : 53px;" value="submit">
</td>
<td style=" width : 107px;" align="right"><font size="2" color="#151B8D"><b><wicket:message key="EXPIRYDATE"></wicket:message> </b></font></td>
<td colspan="2" align="left">
<select wicket:id="dDCExpiryDate" style=" width : 98px;"></select>
<input type="submit" wicket:id="btnGetCalData" value="OK">
</td>
</tr>
</table>
<div style="position: relative;height: 500; overflow:hidden; width : 700;" align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="candlestickAndOHLC" width="860" height="400"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="candlestickAndOHLC.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="always" />
<embed src="bin\CandleStick.swf" quality="high" bgcolor="#ffffff"
width="860" height="400" name="candlestickAndOHLC" align="middle"
play="true"
loop="false"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</div>
</form>
</body>
</wicket:extend>
</html>
答案 0 :(得分:0)
我建议您查看 SWFObject ,这是一种易于使用且标准友好的嵌入Flash内容的方法,它使用一个小的JavaScript文件。
您可以阅读文档并从here
下载