Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving a problem creating a color fade effect on menu items using jquery, html and css
    primarykey
    data
    text
    <p>For giggles, I'm creating an image free, but interacting website. On the menu, I want each item to fade to gray on <code>mouseover</code>, and then fade back to white on <code>mouseout</code>. Currently, all of the menu items fade in unison. For many who inspect my code, you'll surely see why in quick time. I'm just too new to it.</p> <p>Link to site: <a href="http://bigsilkdesign.com/zero_img_site/index_play.html" rel="nofollow">Zero Img Site</a></p> <p>jQuery stuff:</p> <pre><code>&lt;head&gt; &lt;title&gt;Imageless Website in HTML5, jQuery and CSS&lt;/title&gt; &lt;link rel="stylesheet" href="css/main.css" type="text/css" /&gt; &lt;!-- &lt;script type="text/javascript" src="js/CreateHTML5Elements.js"&gt;&lt;/script&gt; --&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;script&gt; $(document).ready(function(){ $(".block").mouseover(function(){ $(".block").animate( { backgroundColor: '#777777' }, 100) }); $(".block").mouseout(function(){ $(".block").animate( { backgroundColor: 'white' }, 200) }); }); &lt;/script&gt; </code></pre> <p>HTML Stuff:</p> <p></p> <pre><code>&lt;a href="http://www.example.com"&gt; &lt;div class="block"&gt; home &lt;/div&gt; &lt;/a&gt; &lt;a href="http://www.example.com"&gt; &lt;div class="block"&gt; about &lt;/div&gt; &lt;/a&gt; &lt;a href="http://www.example.com"&gt; &lt;div class="block"&gt; contact &lt;/div&gt; &lt;/a&gt; &lt;/nav&gt; </code></pre>
    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. 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