Search Google

Saturday, 26 July 2014

example of jquery Accordion and Tabs with code

 SOURCE FROM DOWNLOAD  http://jqueryui.com/themeroller/

<!doctype html>
<html lang="us">
<head>
    <meta charset="utf-8">
    <title>jQuery UI Example Page</title>
    <link href="jquery-ui.css" rel="stylesheet">
    <style>
                              html{
                                     margin:0 !important;
                                     padding:0 !important;
                                      }
   
    body{
        font: 62.5% "Trebuchet MS", sans-serif;
        margin: 0px;
    }
    .demoHeaders {
        margin-top: 2em;
    }
   
    </style>


</head>
<body>







<!-- Accordion -->
<h2 class="demoHeaders">THIS IS EXAMPLE OF ACCORDION</h2>
<div id="accordion">
    <h3>First</h3>
    <div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
    <h3>Second</h3>
    <div>Phasellus mattis tincidunt nibh.</div>
    <h3>Third</h3>
    <div>Nam dui erat, auctor a, dignissim quis.</div>
</div>





<!-- Tabs -->
<h2 class="demoHeaders">Tabs</h2>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">First</a></li>
        <li><a href="#tabs-2">Second</a></li>
        <li><a href="#tabs-3">Third</a></li>
                                        <li><a href="#tabs-4">read fourth</a></li>
    </ul>
    <div id="tabs-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
    <div id="tabs-2">Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.</div>
    <div id="tabs-3">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>
                     <div id="tabs-4">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>
</div>











<script src="external/jquery/jquery.js"></script>
<script src="jquery-ui.js"></script>

<script>
$( "#accordion" ).accordion();
$( "#tabs" ).tabs();
</script>




</body>
</html>


------------------------------
ALL FILE

external/jquery/jquery.js
jquery-ui.js
 jquery-ui.css
index.html
 -----------------------
2 js file
1 css
1html

..........................................................................................................................

jquery effects demo

http://www.jqueryrain.com/

http://www.webdesignerdepot.com/2010/07/20-demos-showing-advanced-jquery-effects/

No comments:

Post a Comment