Rss Feed
    Showing posts with label html. Show all posts
    Showing posts with label html. Show all posts
  1. HTML CSS Box Container

    Friday, 4 April 2014

    <!DOCTYPE html>
    <html>
    <head>
    <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
      <script class="jsbin" src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
    <meta charset=utf-8 />
    <title>JS Bin</title>
    <!--[if IE]>
      <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <style>
      article, aside, figure, footer, header, hgroup,
      menu, nav, section { display: block; }
      #modal {
        width: 600px;
        border: 1px solid #CCC;
        box-shadow: 0 1px 5px #CCC;
        border-radius: 5px;
        font-family: verdana;
        margin: 25px auto;
        overflow: hidden;
      }
      #modal header {
        background: #f1f1f1;
        background-image: -webkit-linear-gradient( top, #f1f1f1, #CCC );
        background-image: -ms-linear-gradient( top, #f1f1f1, #CCC );
        background-image: -moz-linear-gradient( top, #f1f1f1, #CCC );
        background-image: -o-linear-gradient( top, #f1f1f1, #CCC );
        box-shadow: 0 1px 2px #888;
        padding: 10px;
      }
      #modal h1 {
        padding: 0;
        margin: 0;
        font-size: 16px;
        font-weight: normal;
        text-shadow: 0 1px 2px white;
        color: #888;
        text-align: center;
      }
      #modal section {
        padding: 10px 30px;
        font-size: 12px;
        line-height: 175%;
        color: #333;
      }
    </style>
    </head>
    <body>
     
      <div id="modal">
        <header><h1>Something Here</h1></header>
        <section>
          <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
          <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
          <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
        </section>
      </div>
     
    </body>
    </html>

    Demo:
    http://jsbin.com/ogesuf/5/edit


  2. <script>
      // A jQuery based placeholder polyfill
    $(document).ready(function(){
      function add() {
        if($(this).val() === ''){
          $(this).val($(this).attr('placeholder')).addClass('placeholder');
        }
      }

      function remove() {
        if($(this).val() === $(this).attr('placeholder')){
          $(this).val('').removeClass('placeholder');
        }
      }

      // Create a dummy element for feature detection
      if (!('placeholder' in $('<input>')[0])) {

        // Select the elements that have a placeholder attribute
        $('input[placeholder], textarea[placeholder]').blur(add).focus(remove).each(add);

        // Remove the placeholder text before the form is submitted
        $('form').submit(function(){
          $(this).find('input[placeholder], textarea[placeholder]').each(remove);
        });
      }
    });
     
      </script>

  3. To display title in input field

    Friday, 3 May 2013




    <!-- Script - Title display for input text box-->
    <script type="text/javascript" language="javascript"> // <![CDATA[
          $(document).ready(function() {
    $('input[type="text"]').focus(function(srcc)
      {  ($(this).val() == $(this)[0].title)
      { $(this).removeClass("defaultTextActive");
                              $(this).val("");
      } });
    $('input[type="text"]').blur(function()
      { if ($(this).val() == "")
      { $(this).addClass("defaultTextActive");
                      $(this).val($(this)[0].title); }
    }); $('input[type="text"]').blur(); });
    // ]]>
    </script>

  4. Website design tool and links

    Monday, 21 January 2013


    http://twitter.github.com/bootstrap/

    http://www.webdesignerdepot.com/category/code/



    Collection of HTML, CSS and JQUERY

    http://jqueryexample.com/

    http://www.htmldrive.net

    http://www.dynamicdrive.com/

    http://jqueryui.com/

    http://www.jacklmoore.com

    http://webdesignledger.com/tools/10-jquery-plugins-that-will-make-your-life-easier

  5. Free html template!!

    Friday, 14 December 2012

    Awesome templates

    http://www.freewebsitetemplates.com

  6. Websites to learn!!

    Tuesday, 30 October 2012

    http://www.javascriptkit.com/
     http://ntt.cc/2008/05/10/over-10-useful-javascript-regular-expression-functions-to-improve-your-web-applications-efficiency.html
    http://htmldog.com - html
    http://freeajaxscripts.net - ajax

    Javascript
    Coundown timer
    http://keith-wood.name/countdown.html

    Jquery code
    http://jsfiddle.net/tqyj4/4/       

  7. Page reload using onclick event

    Sunday, 14 October 2012

    Onclick page reload using js

     onclick="document.location.reload(true)"