[Zope] Image refresh

Tino Wildenhain tino@wildenhain.de
Sun, 11 Mar 2001 16:26:52 +0100


Hi patric,

assuming your images lay in a folder "images"
you can use

<dtml-var "_.whrandom.choice(images.objectValues()).tag()">

HTH
Tino

Patrick wrote:
> 
> Hi,
> let's say I have a set of logos I want displayed in a certain cell in a
> table.
> 
> So far, I have the following code for this
> 
> <dtml-var standard_html_header>
> <table width=100%>
>     <tr>
>                 <td> <dtml-var render-image_dtml> </td>
>     <tr>
>           ......
>     </tr>
> </table>
> 
> And this works fine.Now, I want to change render-image_dtml so that new
> images are loaded everytime the page is refreshed by a certain user and so
> that the images change automatically if the same page is viewed for say,
> 5 minutes. Any ideas?
> 
> Thanks,
> Patrick.
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )