Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomatically loading a series of images sequentially in html
    primarykey
    data
    text
    <p>I have a html page that gets automatically refreshed every 1 ms. I did it using mata tag:</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;title&gt;My Page&lt;/title&gt; &lt;meta http-equiv="refresh" content="0.001"&gt; &lt;/head&gt; &lt;body&gt; &lt;img src=" 0.bmp" alt="Smiley face" height="100" width="200" /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Now my requirement is such that after every refresh I must load a new file. So in my folder I have files named: 0.bmp, 1.bmp, 2.bmp,... 1000.bmp, which will be loaded on the html file. i.e after every refresh a new file from the folder will be loaded. Basically the file name in </p> <pre><code> &lt;img src=" 0.bmp" alt="Smiley face" height="100" width="200" /&gt; </code></pre> <p>will change from 0.bmp to 1...1000.bmp and so on. </p> <p>How can we do this in html i.e change the file name dynamically? </p> <p><strong>Edited #1:</strong> </p> <p>I have just realized that my problem is basically of animation. So given 1000 images stored in hard disk, I have to play them one by one on an HTML page. This should be as fast as possible. The only requirement is it must be on html pages, this is because these HTML pages will be accessed from a client in a network. the problem that I am thinking is slow playback because read/write to the disk may not be fast. </p> <p><strong>Edited # 2</strong> </p> <p>After getting inputs from following answers, I was able to animate the images. The issue right now I am facing is the display rate is too small, and so fluctuations are coming up. I understand this is a problem of slow read/write from hard disk. So I guess if I can put these images in buffer i.e: System RAM, and write a html/js code to access the images from the RAM instead of the disk, the play back will be much faster. Can someone send me a sample code to, write images in RAM and use html/js code to access these images from RAM? </p> <p>Note: as per the policy of stackoverflow, I am updating my question as and when I am solving various steps of the original problem. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload