Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need the proper library to use those effects. </p> <p>In the example you provided there's a link to JQuery UI, which I believe have the "bounce" effect and <code>.effect</code> function.</p> <pre><code>&lt;script type="text/javascript" src="/jquery/jquery-ui-1.7.2.custom.min.js"&gt;&lt;/script&gt; </code></pre> <p>So, after switching out his custom JQuery UI to the one on Google, try this</p> <pre><code>&lt;!DOCTYPE&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Bounce Effect&lt;/title&gt; &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $("#button").click(function(){ $("#Target").effect( "bounce", {times:3}, 300 ); }); }); &lt;/script&gt; &lt;style&gt; p { background-color:#bca; width:200px; border:1px solid green; } div{ width:100px; height:100px; background:red; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;Click the button&lt;/p&gt; &lt;button id="button"&gt; Bounce &lt;/button&gt; &lt;div id="Target" class="target" &gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>You can learn more about it <a href="http://docs.jquery.com/UI/Effects/Bounce" rel="nofollow">here</a>. JQuery and JQuery UI have fairly extensive documentation, so you should read up on them.</p> <ul> <li><a href="http://docs.jquery.com/Main_Page" rel="nofollow">JQuery</a></li> <li><a href="http://jqueryui.com/demos/" rel="nofollow">JQuery UI</a></li> </ul> <p>Also, <a href="http://jsfiddle.net/e7BLv/" rel="nofollow">here's a JSFiddle</a> for you to... <a href="http://jsfiddle.net/e7BLv/1/" rel="nofollow">fiddle</a> around with. It's useful when you want to make examples or test something fast.</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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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