<html>
<head>
<title>Flash Play</title>
</head>
<SCRIPT language=JavaScript>...
function setFileName(ra)...{
if (navigator.appName != "Netscape")...{
document.forms["play_form"].NSPlay.movie=ra;
}
else
top.location.href=ra;
}
</SCRIPT>
<body >
<form name="play_form" id="play_form" method="post" action="">
<object width="80%" height="80%" classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 type="application/x-shockwave-flash" name="NSPlay">
</object>
</form>
<br><br><br>
<table width="780" border="1">
<tr>
<td><a href="#" onclick="setFileName('flashName.swf')">NameOne</a> <a href="#" onclick="setFileName('http://www.youkuaiyun.com')">NameTwo</a></td>
</tr>
</table>
</body>
</html>
本文介绍了一种将Flash播放器嵌入到网页中的方法,并提供了具体的HTML与JavaScript代码实现。通过设置函数和使用特定的HTML标签,可以实现在不同浏览器中正确加载和播放Flash内容。
1894

被折叠的 条评论
为什么被折叠?



