0
即時通訊使用Joomla模塊上的Flash來顯示圖像,我將Flash播放器代碼嵌入到JavaScript中,它從XML文件中獲取圖像,圖像是預定義的,好, 現在我有一個問題,即時從數據庫中收集圖像,意味着圖像是動態的,所以即時無法獲取該圖像在閃存上顯示,我只想知道如何將動態圖像數組添加到閃存。我需要創建XML?無法在Flash圖庫中添加動態圖像(Joomla模塊)
這裏是我的代碼示例
<div id="slider"></div>
<script type="text/javascript">
var so = new SWFObject("http://localhost/projectname/modules/mod_photo_gallery2/gianniconti.swf", "slider", "942", "477", "8", "#000000");
so.addVariable("xml_path","http://localhost/projectname/modules/mod_photo_gallery2/gianniconti.xml");
so.addParam("wmode", "transparent");
so.write("slider");
</script>
<?php foreach ($photos as $photo) { // $photos containing images path (fetch from db) ?>
<img src="http://localhost/projectname/components/com_user/views/images/thumbnail/<?php echo $photo->thumbnail;?>" width="100" height="100">
<?php }?>
......
......
請幫我儘快,
感謝
感謝您的鏈接 – JustLearn 2010-08-10 14:59:14