Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I did that one time on a website, I use "Prototype JS" and "Script Aculo US" but you can easily do the same thing without these library. You can see an example here: www.envolulm.fr</p> <p>I extract below and translate some comment of my code:</p> <p>/<strong>* In my HTML PAGE*</strong>/</p> <pre><code> &lt;div id="slideshow"&gt; &lt;p id="text1"&gt;&lt;img src="/url/of/your/image1"/&gt;&lt;/p&gt; &lt;p id="text2"&gt;&lt;img src="/url/of/your/image1"/&gt;&lt;/p&gt; &lt;p id="text3"&gt;&lt;img src="/url/of/your/image1"/&gt;&lt;/p&gt; &lt;p id="text4"&gt;&lt;img src="/url/of/your/image1"/&gt;&lt;/p&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>#text1, #text2, #text3, #text4 { position:absolute; height:402px; // you can put other value...here width:850px; // you can put other value...here } </code></pre> <p>Javascript function </p> <pre><code>function changeimg(){ var sec = 6000; // Change each 6 secondes var paras = $$('#slideshow p'); // Grab element "&lt;p&gt;" of the div with slideshow for ID // For each element "&lt;p&gt;" paras.each(function(para){ if(para.visible()){ paraFade = para; // We stock the item which will disappear paraAppear = para.next(); // We got the next element (The one who wants to appear) //If it's the last "p" element we come back to the first one if(paraAppear == undefined){ paraAppear = paras[0]; } } }); Effect.Appear(paraAppear); // Script Aculo US animation Effect.Fade(paraFade); // Script Aculo US animation timer = setTimeout("changeimg()",sec); // Timer } Event.observe(window, 'load', function() { changeimg(); } </code></pre> <p>Hope that can help you.</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.
    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