title: jquery hash link to new page scrolling to different anchors
body: <p>I am using some jQuery to do the following:</p>
  
  <p>From page 1, link to anchor on page 2 - but load the page first, then scroll to the anchor.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   jQuery(function(){
      jQuery('html, body').animate({
          scrollTop: jQuery('.Anchor').offset().top
      }, 2000);
      return false;
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>My link is like this domain.com/page2.html#anchor-name</p>
  
  <p>The anchors are like this:</p>
  
  <pre><code>&lt;div name="anchor-name" class="Anchor"&gt;&amp;nbsp;&lt;/div&gt;
  </code></pre>
  
  <p>The above works fine for just 1 anchor.</p>
  
  <p>Ho do I edit the above jQuery, so that I can have multiple anchors on page 2 &amp; links to them.</p>
  
  <p>i.e.</p>
  
  <pre><code>&lt;div name="anchor-name" class="Anchor"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div name="anchor-fred" class="Anchor"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div name="anchor-bert" class="Anchor"&gt;&amp;nbsp;&lt;/div&gt;
  </code></pre>