讓資料夾中的聲音或影片自動撥放

| 八月 25, 2005 | 2個迴響| 沒有引用| 1189 reads | Size: L, M, S | Edit: P, C, R |
| Category: LifeType. |

    As Title...

    Edit the file "resource.template" in your template.

    Find that

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

    Fix it to

    {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/>

     

    Than, find that

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

    And alos edit it :

    {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/>

     

    if don't play auto. fix the red line:

    <p><embed src="{$url->resourceDownloadLink($resource)}" autostart="false"/></p>

    OK... That's Done!




Leave A Comment:













   


2 迴響 of "讓資料夾中的聲音或影片自動撥放"

una By una @ 2005 八月 26, 11:55 :

基本上
我覺得上傳影音黨有點慢....

una By una @ 2005 八月 26, 12:10 :

整個弄不出來

resourceDownloadLink($resource)}" autostart="false"/>

什麼意思