想实现 http://cs.dokee.cn/中这样的图片显示效果
代码如下:
js代码:
function ObjFlash(src, width, height, param, addParam)
{//图片新图.
param = param || "";
addParam = addParam || "";
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\" document.writeln(" <param name=\"movie\" value=\"" + src + "\">");
document.writeln(" <param name=\"flashVars\" value=\"" + param + "\">");
//alert(" <param name=\"flashVars\" value=\"" + param + "\">");
document.writeln(" <param name='allowScriptAccess' value='always' />");
document.writeln(" <param name='allowFullScreen' value='true' />");
document.writeln(" <param name='menu' value='false' />");
document.writeln(" <param name='wmode' value='transparent'");
document.writeln(" <embed src=\"" + src + "?" + param + "\" quality=\"high\" pluginspage=\" http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>");
document.writeln("</object>");
}
页面代码:
<div id="GameEvent">
<script Language="JavaScript" type="text/javascript">
ObjFlash("images/fla/event.swf", 231, 250, "EditURL="+
"&exposure1=Y&url1=images/match/&target1=2&time1=2009010291400~200906302500&img1=img_135.jpg" +
"&exposure0=Y&url0=images/news/viewnews-21835.html&target0=2&time0=2009010291400~200908302500&img0=img_26.jpg" +
"&exposure2=Y&url2=images/match/&target2=2&time2=2009010291400~200908302500&img2=img_23.jpg"
);
</script>
</div>
效果如图:
原因应该是图片路径不对,望高手解释下