Note that there are some explanatory texts on larger screens.

plurals
  1. POJS is changing src, but image is not changeing in firefox
    primarykey
    data
    text
    <p>I'm strugling with a quite simple code. I want to change an image every 2.5s, as a little slideshow of pictures. It is doing the right thing in the source(code inspector in the browser), but the picture is not changing in firefox and opera. IE, Chrome and safari(mobile) is working fine.</p> <pre><code>&lt;script language="JavaScript"&gt; var i = 0; var path = new Array(); // LIST OF IMAGES path[0] = "./images/xess1.jpg"; path[1] = "./images/xess2.jpg"; path[2] = "./images/xess3.jpg"; path[3] = "./images/xess4.jpg"; (...) function swapImage() { document.slide.src = path[i]; if(i &lt; path.length - 1) i++; else i = 0; setTimeout("swapImage()",2500); } window.onload=swapImage; </code></pre> <p> </p> <pre><code> &lt;div class=left&gt; &lt;img name="slide" id=inner src="./images/xess1.jpg" /&gt; &lt;/div&gt; </code></pre> <p>I also tried:</p> <pre><code>document.getElementById('inner').src = path[i]; </code></pre> <p>But it leads to the same result?</p> <p>Code change works, but image does not change: <a href="http://www.image-share.com/upload/2382/255.gif" rel="nofollow">see here</a></p> <p>Thanks!</p> <hr> <p>no, there are no errors in the console:</p> <pre><code>11:35:32.848 GET http://*******/images/xess1.jpg [HTTP/1.1 200 OK 42676ms] 11:36:17.995 GET http://*******/images/xess2.jpg [HTTP/1.1 200 OK 2493ms] 11:36:20.510 GET http://*******/images/xess3.jpg [HTTP/1.1 200 OK 2744ms] 11:36:23.031 GET http://*******/images/xess4.jpg [HTTP/1.1 200 OK 2492ms] 11:36:25.540 GET http://*******/images/xess5.jpg [HTTP/1.1 200 OK 2492ms] </code></pre> <p>You can find the page here: www.miramo.de/miramo.de.html</p>
    singulars
    1. This table or related slice is empty.
    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.
    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