I like Randal's example but I think that's a different problem. He's building a LWP-based browser-like Perl script to go pull just images. That's different than enabling a page in a given browser to refresh its images automagically.

The way I've done this is with JavaScript and timers. There's an example of that here. Probably lots of others ... I'm at best a mediocre JavaScript hacker so I usually just snarf up someone else's examples as starting points. They're all over the web. Just make sure you try it out on different browsers since JavaScript and other dynamic HTML is notoriously browser specific.

The page refresh technique mentioned also works but it's not as slick since the whole page gets refreshed. As much as I dislike JavaScript it does make this sort of thing (just updating the image) look pretty nice. A site I worked on does that on mouse scroll-overs with a pretty nice resulting effect.


In reply to Re: real time image show by steves
in thread real time image show by Brother Geoff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.