title: jQuery and Link Anchor
body: <p>Hello This is a particular question, and I do not know if jQuery can help me, or if even CSS would be enough in this case.</p>
  
  <p>I have a link from a page that goes to another page, pointing to a link anchor:</p>
  
  <pre><code>&lt;a title="Creazione Siti E-Commerce" href="http://mysite.com/it/servizi/#ecommerce"&gt;
  </code></pre>
  
  <p>goes to the anchor link in the page /it/servizi/</p>
  
  <p>Everything is fine here.</p>
  
  <p>What I want to achieve is:</p>
  
  <p>The new page will scroll to the anchor using the jQuery scroll animation. So I should be able to tell to the jQuery code that when in the URL it finds an anchor like <a href="http://mysite.com/it/servizi/#ecommerce" rel="nofollow">http://mysite.com/it/servizi/#ecommerce</a> it will animate the scrolling.</p>
  
  <p>Second point is that when it finds this kind of URL <a href="http://mysite.com/it/servizi/#ecommerce" rel="nofollow">http://mysite.com/it/servizi/#ecommerce</a>, the jQuery code will add a new class to a specific element in the page. ( I need it to change the color of the text, to help the user to see what has been selected, in this case #ecommerce)</p>
  
  <p>It's difficult to explain. I hope someone will understand my point :(</p>
  
  <p>Thanks.</p>