Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Wednesday, 19 February 2014

how to create tabs dynamic example in html

             
                  in this post to you provide how to create dynamic tab menu using jQuery. standards compliant with menu tabs and sub contents are defined using HTML.and contents of this menu are search engine friendly. here you should set one tab default when the page is loads. if your default tab contains a sub content, that content will be show. here follow some steps to create dynamic tab menu and use it where were you wish.

first create one index.html file and include below two .js file and one .css file.

<link rel="stylesheet" href="jquery-ui.css" TYPE="text/css">
<script src="jquery-1.9.1.js"></script>
<script type="text/javascript" src="jquery-ui-1.10.3.custom.min.js"></script>

Than put below jQuery code in <head> tag.

<script language="javascript">
$(document).ready(function() {
    var tabs = $("#container-1").tabs();
    var tabCounter = 1;

    $('#add_tab').click( function(){
        var ul = tabs.find( "ul" );
        var current_idx = ul.find("li").length + 1;
        $("<li><a href='#fragment-" + current_idx + "'>Menu</a></li>" ).appendTo( ul );
        tabs.append("<div id='fragment-" + current_idx + "'>Content of Added Menu" + current_idx + "</div>");
        tabs.tabs("refresh");
        tabs.tabs("select", 1);
    });
}); 
</script>

After follow abow step write few line html code look like this.

<div id="container-1">
    <ul>
        <li><a href="#fragment-1">Menu 1</a></li>
        <li><a href="#fragment-2">Menu 2</a></li>
        <li><a href="#fragment-3">Menu 3</a></li>
    </ul>
    <div id="fragment-1">Content of First Menu by easyscript4u.com</div>
    <div id="fragment-2">Content of Second Menu by easyscript4u.com</div>
    <div id="fragment-3">Content of Third Menu by easyscript4u.com</div>
</div>
        <button id="add_tab">Add Tab</button>
</div>

             now you can add new tab easily by clicking "Add Tab" button and enjoy. you can see live demo or free download complate example by clicking download button.

      
            if you have any query or problem in PHP or PHP framework like Codeigniter, WordPress, Magento than you can freely contact on this email : easyscript4you@gmail.com




tabs examples in html with css

                         
                a tab navigation is a one of the most fundamental element in modern web structure. here i have examplain about tab that how to create tab in html using css and jQuery. it is very simple and very easy just follow some step to create a tab menu and also you can easily implement this tab menu in your website and can change tab design and colors.



Monday, 10 June 2013

stylish login page using html

   
       Here you can find a stylish different login form for your authenticate website.click below link to you can see five different stylish login form demo.


Thursday, 4 April 2013

How to print webpage with background image?

           Put image in HTML not in CSS like below. the css code not working with pdf i mean you create pdf using php like dompdf etc.... than image will not display in pdf file if you put image in css. so here better you should put image in HTML...

HTML

  <img src="../some_images.jpg" />

not

background-images:url(../some_images.jpg);