title: how to show content as default in ajax?
body: <p>i have a ajax function with history support, but i want to load an page content from a link.</p>
  
  <p>here is my index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;demo&lt;/title&gt;
  &lt;script src="jquery.tools.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="tabs-no-images.css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;ul class="css-tabs"&gt;
    &lt;li&gt;&lt;a href="ajax1.htm"&gt;Tab 1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="ajax2.htm"&gt;Second tab&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="ajax3.htm"&gt;An ultra long third tab&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div class="css-panes"&gt;
    &lt;div style="display:block"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
    $(function() {
        $("ul.css-tabs").tabs(
        "div.css-panes &gt; div",
        {effect: 'ajax', history: true}
      );
      });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and my css</p>
  
  <pre><code>/* root element for tabs  */
  ul.css-tabs {
      margin:0 !important;
      padding:0;
      height:30px;
      border-bottom:1px solid #666;
  }
  
  /* single tab */
  ul.css-tabs li {
      float:left;
      padding:0;
      margin:0;
      list-style-type:none;
  }
  
  /* link inside the tab. uses a background image */
  ul.css-tabs a {
      float:left;
      font-size:13px;
      display:block;
      padding:5px 30px;
      text-decoration:none;
      border:1px solid #666;
      border-bottom:0px;
      height:18px;
      background-color:#efefef;
      color:#777;
      margin-right:2px;
      position:relative;
      top:1px;
      outline:0;
      -moz-border-radius:4px 4px 0 0;
  }
  
  ul.css-tabs a:hover {
      background-color:#F7F7F7;
      color:#333;
  }
  
  /* selected tab */
  ul.css-tabs a.current {
      background-color:#ddd;
      border-bottom:1px solid #ddd;
      color:#000;
      cursor:default;
  }
  
  
  /* tab pane */
  .css-panes div {
      display:none;
      border:1px solid #666;
      border-width:0 1px 1px 1px;
      min-height:150px;
      padding:15px 20px;
      background-color:#ddd;
  }
  </code></pre>
  
  <p>and the  <a href="https://dl.dropbox.com/u/69060927/New%20folder/jquery.tools.min.js" rel="nofollow">jquery.tools.min</a></p>
  
  <p>i have three folder which contains ajax content.</p>
  
  <p>i want, when a user go to the page index.html, they can see the content of any page (ajax1.htm or ..) as default content.
  so my question is how to do it with my current code by adding extra code?</p>
  
  <p>and please describe what to edit and where to place a external code or something. </p>
  
  <p>Code from comments: </p>
  
  <pre><code>$(function() {
      var current_hash = false;
      setInterval(function() {
          if (window.location.hash != current_hash) {
              current_hash = window.location.hash;
              $('#content').load("ajax1.htm?page=" + current_hash);
          }
      }, 100);
  });​
  </code></pre>