FLASH图片调用,只须修改“ index.tpl.php”文件,将下面的代码放到你想要的地方即可。
<!-- 首页图片幻灯 -->
<div class="forumbox" >
<div id="shouye4" style="display:''">
<table cellspacing="0" class="inner">
<td width="100%">
<?
$sql="select f_id,f_boardid,f_announceid,f_viewname,f_filetype,f_filename,f_type,f_username,f_downnum,f_readme,f_viewnum from {$dv}upfile where f_boardid!=0 and f_boardid!=444 and f_boardid!=777 order by f_addtime desc LIMIT 0,6";
$result=$db->query($sql);
while($file_arr=$db->fetch_array($result)){
$file_list[]=$file_arr;
}
$db->free_result($result);
foreach($file_list as $file_vol){
$showpicpics.=$comma.'uploadfile/'.$file_vol['f_filename'];
$showpiclinks.=$comma."show.php?filetype=1&boardid=0";
$showpictexts .=$comma.$file_vol['f_readme'];
$comma = '|';
}
?>
<script type="text/javascript">
var swf_width=240
var swf_height=190
var config='5|0xffffff|0x000000|60|0xffffff|0x0099ff|0x000000'
//-- config 参数设置 -- 自动播放时间(秒)|文字颜色|文字背景色|文字背景透明度|按键数字颜色|当前按键颜色|普通按键色彩 --
var files= '<?=$showpicpics?>'
var links='<?=$showpiclinks?>'
var texts='<?=$showpictexts?>'
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="images/focus.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="menu" value="false" />');
document.write('<param name=wmode value="opaque" />');
document.write('<param name="FlashVars" value="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
document.write('<embed src="images/focus.swf" wmode="opaque" FlashVars="config='+config+'&bcastr_flie='+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>');
</script>
</td>
</table>
</td>
</tr>
</table>
</div>
</div>
<!-- 首页图片幻灯end -->
首页图片幻灯FLASH文件:
点击浏览该文件
请PC姐姐把这个讲的详细点啊 这个看不明白啊 其他我都能调用了呢 谢谢