views:

512

answers:

2

how can i make jquery tabs with image please give me code and related files

+2  A: 

There are bunch of tutorial, just ask google "follow"

Ish Kumar
+3  A: 

I agree with the answer: just ask google; however, if you place the two images in the following example (a.png, b.png) in the right place, you should see tabs with images instantly.

<!DOCTYPE html>
<html>
<head>
  <link type="text/css" 
href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
  <script type="text/javascript" 
    src="http://jqueryui.com/latest/jquery-1.3.2.js"&gt;&lt;/script&gt;
  <script type="text/javascript" 
    src="http://jqueryui.com/latest/ui/ui.core.js"&gt;&lt;/script&gt;
  <script type="text/javascript" 
    src="http://jqueryui.com/latest/ui/ui.tabs.js"&gt;&lt;/script&gt;
  <script type="text/javascript">
  $(document).ready(function(){
    $("#tabs").tabs();
  });
  </script>
</head>
<body style="font-size:62.5%;">

<div id="tabs">
    <ul>
        <li><a href="#fragment-1">
            <span><img src="images/a.png"></img> One</span></a></li>
        <li><a href="#fragment-2">
            <span><img src="images/b.png"></img> Two</span></a></li>
    </ul>
    <div id="fragment-1">
        <p>First tab is active by default:</p>
        <pre><code>$('#example').tabs();</code></pre>
    </div>
    <div id="fragment-2">Lorem ipsum dolor sit amet, ...</div>
</div></body></html>
The MYYN