<object id="siteflashobj" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="Movie" value="/Module/SiteControl/demofiles/car.swf">
</object>
<script type="text/javascript">
//改变flash参数值
function fChangeParam(paramname, value) {
//flash对象
var prmsObj = document.getElementById("siteflashobj")
prmsObj.Movie = value;
prmsObj.Play();
// //获取所有param节点
// var prms = document.getElementById("siteflashobj").getElementsByTagName("param");
// //循环比较param节点值
// for (var i = 0; i < prms.length; i++) {
// if (prms[i].name.toLowerCase() == paramname.toLowerCase()) {
// //改变值
// document.getElementsByTagName("param")[i].value = value;
// }
// }
}
</script>