how can i make jquery tabs with image please give me code and related files
+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"></script>
<script type="text/javascript"
src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript"
src="http://jqueryui.com/latest/ui/ui.tabs.js"></script>
<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
2009-05-25 10:40:16