Site Map JQuery Style.. using attr. plus page urls
<p>So I have a looping example of site url string and trying to add pages to the links, but I don't want to have to deal with the domain as it's fixed.  Right now it doesn't work.. but I'm trying to fix it.</p>

<pre><code>    &lt;script&gt;
    $(document).ready(function() {

    url =  $(this).attr('href', $(this).attr('href'));

       $('#sitemap a').attr('href','http://site.com/?c=123&amp;p='+url);

    });
    &lt;/script&gt;

    // trying to get output  http://site.com/?c=123&amp;p=page1.html
    &lt;div id="sitemap"&gt;
    &lt;a href="page1.html"&gt;test&lt;/a&gt;
    &lt;a href="page2.html"&gt;test&lt;/a&gt;
    &lt;a href="page3.html"&gt;test&lt;/a&gt;
    &lt;/div&gt;
</code></pre>
