Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { setInterval(function () { moveit(); }, 10); $('[id^=friends]').hover(function () { $(this).addClass('Stop'); }, function () { $(this).removeClass('Stop'); }); var p = 0; function moveit() { if ($('img.a.Stop').length === 0) { p += .01; var r = 165; var xcenter = 550; var ycenter = 300; var newLeft = Math.floor(xcenter + (r * Math.cos(p + 90))); var newTop = Math.floor(ycenter + (r * Math.sin(p + 90))); var newLeft1 = Math.floor(xcenter + -(r * Math.cos(p + 120))); var newTop1 = Math.floor(ycenter + -(r * Math.sin(p + 120))); var newLeft2 = Math.floor(xcenter + (r * Math.cos(p + 390))); var newTop2 = Math.floor(ycenter + (r * Math.sin(p + 390))); $('#friends1').animate({ top: newTop, left: newLeft }, 10); $('#friends2').animate({ top: newTop1, left: newLeft1 }, 10); $('#friends3').animate({ top: newTop2, left: newLeft2 }, 10); } } }); &lt;/script&gt; &lt;style type="text/css"&gt; .a { width:100px; heigth:100px; position: relative; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;img alt="" class="a" id="friends1" src="http://www.imageurlhost.com/images/uffodkj65ykm87t1twcn.jpg" /&gt; &lt;br /&gt; &lt;img alt="" class="a" id="friends2" src="http://www.imageurlhost.com/images/w6ozdx840xmlvgzo6mt4.jpg" /&gt; &lt;br /&gt; &lt;img alt="" class="a" id="friends3" src="http://www.imageurlhost.com/images/i0ndbnhlg0zfvnyxrgd.jpg" /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

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