Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I figured this one out on my own.</p> <pre><code>&lt;div class="gcRotate"&gt; &lt;div class="gcRotateContent"&gt; &lt;div style="border: solid 2px black; text-align: center; width: 150px;"&gt; This is first content &lt;img src="http://pix.motivatedphotos.com/2008/6/16/633492359109161542-Skills.jpg" alt="First" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="gcRotateContent"&gt; &lt;div style="border: solid 2px black; text-align: center; width: 150px"&gt; This is second content &lt;img src="http://www.funnycorner.net/funny-pictures/5010/cheezburger-locats.jpg" alt="Second" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="gcRotateContent"&gt; &lt;div style="border: solid 2px black; text-align: center; width: 150px"&gt; This is third content &lt;img src="http://icanhascheezburger.files.wordpress.com/2007/06/business.jpg" alt="Third" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div&gt; This shouldn't move. &lt;/div&gt; &lt;script type="text/javascript"&gt; function fadeContent() { $(".gcRotateContent").first().fadeOut(500, function() { $(".gcRotateContent:hidden:first").fadeIn(500) }); $(".gcRotateContent").first().appendTo($(".gcRotateContent").parent()); } $(".gcRotate").height(0); $(".gcRotateContent").each( function() { if ($(".gcRotate").height() &lt; $(this).height()) { $(".gcRotate").height($(this).height()); } } ); $(".gcRotateContent").each(function() { $(this).css("display", "none") }); $(".gcRotate").hover(function() {window.clearInterval(timer)}, function() {timer = window.setInterval("fadeContent()", 2000)}); $(".gcRotateContent").first().show(0); var timer = window.setInterval("fadeContent()", 2000); &lt;/script&gt; </code></pre>
    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