這個修改可以套用在所有的模版中。
只要將resource.template中的


 

{if $resource->isSound()}
<img alt="Sound" src="{$url->getUrl("/imgs/sound.gif";)}" height="64" width="64" style="border:0px;" /><br/>
{$resource->getFileName()}
</a><br/>

 

改成

{if $resource->isSound()}
<img alt="Sound" src="{$url->getUrl("/imgs/sound.gif";)}" height="64" width="64" style="border:0px;" /><br/>
<p><embed src="{$url->resourceDownloadLink($resource)}" /></p>
{$resource->getFileName()}
</a><br/>

至於影片的部份,則是把

{elseif $resource->isVideo()}
<img alt="Sound" src="{$url->getUrl("/imgs/video.gif";)}" height="64" width="64" style="border:0px;" /><br/>
{$resource->getFileName()}
</a><br/>

更換成

{elseif $resource->isVideo()}
<img alt="Sound" src="{$url->getUrl("/imgs/video.gif";)}" height="64" width="64" style="border:0px;" /><br/>
<p><embed src="{$url->resourceDownloadLink($resource)}" /></p>
{$resource->getFileName()}
</a><br/>

如果不想讓聲音檔或影片檔自動開始撥放,只要在紅色那行中加入 autostart="false" (加在/>前) 就可以

arrow
arrow
    全站熱搜

    jianmin2 發表在 痞客邦 留言(0) 人氣()


    留言列表 留言列表

    發表留言