<script type='text/javascript'>
    var imagePath=new Array();//图片地址
    var linkPath=new Array();//连接地址
    var infoText=new Array();//介绍性文字283451imagePath.push("http://www.china9986.com/admin/upimages/201051810453266.jpg")
linkPath.push("/Expo/ExpoArticle/258499.shtml")
infoText.push("第六届文博会颁发优秀组织奖和优秀展示奖")imagePath.push("http://www.china9986.com/admin/upimages/2010819141954437.jpg")
linkPath.push("/Expo/ExpoArticle/274031.shtml")
infoText.push("2010南国书香节暨羊城书展在琶洲会展中心隆重开幕")imagePath.push("http://www.china9986.com/admin/upimages/201062914825328.jpg")
linkPath.push("/Expo/ExpoArticle/266042.shtml")
infoText.push("中新社登发《第二届中国网博会将在深圳启帷》")imagePath.push("http://www.china9986.com/admin/upimages/201051810453266.jpg")
linkPath.push("/Expo/ExpoArticle/258499.shtml")
infoText.push("第六届文博会颁发优秀组织奖和优秀展示奖")imagePath.push("http://www.china9986.com/admin/upimages/2010419162121363.jpg")
linkPath.push("/Expo/ExpoArticle/252827.shtml")
infoText.push("中国网博会亮相香港资博会 力促深港互联网互补融合")
    var imagePath_str=""
    var linkPath_str=""
    var infoText_str=""
    for(var i=0;i<5;i++){
    imagePath_str+=imagePath[i]+"|";
    linkPath_str+=linkPath[i]+"|";
    infoText_str+=infoText[i]+"|";
    }    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='300' height='270' id='flash2'> ");
    document.write("<param name='allowScriptAccess' value='sameDomain' >");
    document.write("<param name='movie' value='http://www.china9986.com/images/flash/flash2.swf' >");
    document.write("<param name='quality' value='high' >");
    document.write("<param name='bgcolor' value='#ffffff' >");
    document.write("<param name=\"FlashVars\" value=\"ppurl="+imagePath_str+"&pplink="+linkPath_str+"&ppfinfo="+infoText_str+"\" \/>");       
    document.write("<embed src='http://www.china9986.com/images/flash/flash2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='300' height='270'></embed>");
    document.write("</object>");
    </script>

解决方案 »

  1.   

    document.write("<embed src='http://www.china9986.com/images/flash/flash2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='300' height='270' flashvars='ppurl="+imagePath_str+"&pplink="+linkPath_str+"&ppfinfo="+infoText_str+"'></embed>");在embed中加多个flashvars,如上代码。
      

  2.   

    你的代码应该没有问题啊!
    你直接在真正的发布站点服务器环境下访问一下还有这样的问题吗?
    或者将对应的图片和插件下载到本地,然后将脚本中的地址改为本地地址。
    或者你将documet.write()中的内容直接写为静态的试试。在新版本的浏览器中,安全机制越来越严格。按照脚本的同域原则,动态引用的插件脚本等在不同域环境下禁止运行,以免造成XSS跨站攻击。
    例如我可以在浏览器地址中直接输入http://‘真实站点’?..&...&plugin='http://恶意站点插件地址'。,如果运行动态加载的非同域插件或脚本,那么恶意站点的脚本插件等会操作真实站点的数据。
      

  3.   

    加上一楼的代码可以了。
    呃,猜错了,没用过Flash.