先来看源代码处:
function ad_flash($re,$ar)
{
        global $db,$config;
        $width  = $ar['width']; //宽度
        $height = $ar['height'];//高度
        
                foreach($re as $v)
                {
                        $ssp[]=$config['weburl'].'/uploadfile/ads/'.$v['picName'];
                        $sslp[]=$v['url'];
                }
        
   $str="
        var swf_width=$width;
        var swf_height=$height;
        var files='".implode("|",$ssp)."';
        var links='".implode("|",$sslp)."';
        var texts='';
        document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"'+ swf_width +'\" height=\"'+ swf_height +'\">');
        document.write('<param name=\"movie\" value=\"$config[weburl]/image/default/hot_new.swf\"><param name=\"quality\" value=\"high\">');
        document.write('<param name=\"menu\" value=\"false\"><param name=wmode value=\"opaque\">');
        document.write('<param name=\"FlashVars\" value=\"bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'\">');
        document.write('<embed src=\"$config[weburl]/image/default/hot_new.swf\" wmode=\"opaque\" FlashVars=\"bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu=\"false\" quality=\"high\" width=\"'+ swf_width +'\" height=\"'+ swf_height +'\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />'); document.write('</object>'); 
                ";   return $str;
}
重点指出这处是关键:foreach($re as $v)
                {
                        $ssp[]=$config['weburl'].'/uploadfile/ads/'.$v['picName'];
                        $sslp[]=$v['url'];
                }图片有5张全部都可以显示出来,链接在数据库里面看有5个,但是只有第一张图片有链接,其他四张均没有链接。这是一并输出的,如果写得有误,就应该一个链接都读不出来才是。
于是我用GOOGLE浏览器查看下:结果是这样的,        var swf_width=488;
        var swf_height=298;
        var files='http://192.168.1.108/uploadfile/ads/831355392001.jpg|http://192.168.1.108/uploadfile/ads/811357461025.jpg|http://192.168.1.108/uploadfile/ads/821355392070.jpg|http://192.168.1.108/uploadfile/ads/1081355392097.jpg|http://192.168.1.108/uploadfile/ads/1091355392116.jpg';
        var links='http://192.168.1.108/?m=offer&s=offer_list|http://192.168.1.108/?m=offer&s=offer_list&catType=2|http://192.168.1.108/?m=offer&s=offer_list&catType=1|http://192.168.1.108/?m=offer&s=offer_list&catType=4|http://192.168.1.108/?m=offer&s=offer_list&catType=3';
        var texts='';
        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
        document.write('<param name="movie" value="http://192.168.1.108/image/default/hot_new.swf"><param name="quality" value="high">');
        document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
        document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
        document.write('<embed src="http://192.168.1.108/image/default/hot_new.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); 
                看links,是有输出了五个的,但是为什么就无法在页面上显示链接呢?朋友们帮忙看看这里的http://www.aircraftnurse.com/五张轮换的图片,鼠标移上就知道只有第一张图片有链接,其他的图片都没有链接的。
        
经过又一轮的测试,发现问题集中到了这一点上:http://www.aircraftnurse.com/?m=offer&s=offer_list&catType=2,如果是这个链接加上去是没有效果的,没去点击。
如果把  &s=offer_list&catType=2  去掉则这个链接就生效了。问题,难道FLASH里面的图片的链接都是不能有    "&"   的吗?应该怎么改好呢?Flashphpflash加载链接