$sql="select * from phpcms_ads where placeid=85 order by adsid desc limit 0 ,5 ";
$result = $db->query($sql);
$i = 1;
while($record = mysql_fetch_object($result))
{
if($i==1)
{
$sPics = $record->imageurl;
$sLinks = 'ads/clickads.php?id='.$record->adsid;
$sTexts = $record->adsname;
}
else 
{
$sPics .= "|".$record->imageurl;
$sLinks .= "|ads/clickads.php?id=".$record->adsid;
$sTexts .= "|".$record->adsname;
}


$i++;
}
?>
var focus_width=380;
var focus_height=310;
var text_height=20;
var swf_height = focus_height+text_height;var pics="<?=$sPics?>";
var links="<?=$sLinks?>";
var texts="<?=$sTexts?>";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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/js/jktp/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('</object>');
大家帮助我看下,为什么通过js调用的效果在火狐下不能正常显示,在IE下显示正常,谢谢,着急中!