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.
Look into HTTP meta-refresh or Javascript for this. This isn't really a Zope thing, but rather a browser-side thing. ----- Original Message ----- From: "Patrick" <patrick@eahd.or.ug> To: <zope@zope.org> Sent: Saturday, March 10, 2001 4:11 AM Subject: [Zope] Image refresh
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 )
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 )
participants (3)
-
Chris McDonough -
Patrick -
Tino Wildenhain