Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

शनिवार, ३ डिसेंबर, २०१६

<style type="text/css">
   
  /* Height & width for the container - The rest is done by the jQuery part. */
  div[rel='scrollcontent1'] { width: 60%; height: 280px;}
 
  /* Basic CSS for the elements - If rel is "scrollcontent1", style its scrollbar by referring to ".scrollcontent-content", ".scrollcontent-bar", etc. */
  .scrollcontent1-content { /* background: #eee; */ } /* for vertical content, no explicit width is required for inner DIV */
  .scrollcontent1-bar { width: 11px; background: #fffeda; border-radius: 4px; box-shadow: inset 0px 0px 5px #444444; overflow: hidden; }
  .scrollcontent1-drag { background: #ad5134; border-radius: 4px; cursor: pointer; }
 
  div[rel='scrollcontent2'] { width: 300px; height: 300px; }
 
  /* Basic CSS for the elements - If rel is "scrollcontent2", style its scrollbar by referring to ".scrollcontent2-content", ".scrollcontent2-bar", etc. */
  .scrollcontent2-content { width: 999px; } /* for horizontal content, width should be set to total width of all floated inner container elements */
  .scrollcontent2-bar { height: 15px; background: #ccc; border-radius: 5px; box-shadow: inset 0px 0px 5px #444444; overflow: hidden; }
  .scrollcontent2-drag { background: #425a8a; border-radius: 5px; cursor: pointer; }
 
  /* Not needed elements */
  #contentwrap { padding: 5px; border: 1px #444444 solid; display: block; width: 300px; border-radius: 10px; }
  .scrollcontent1-content p, .scrollcontent2-content p {margin:0; padding:0}
   
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.mousewheel.min.js"></script>

<script src="slickcustomscroll.js">

/***********************************************
* Slick Custom Scrollbar script (c) Dynamic Drive (www.dynamicdrive.com)
* Please keep this notice intact
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

</script>


<script type="text/javascript">
   
    /*
        Usage:
            HTML: Insert your content into a DIV element with an unique rel="" attribute.
                <div rel="the-unique-id"></div>
            JAVASCRIPT: Direction either "vertical" or "horizontal".
                $( "div[rel='the-unique-id']" ).customscroll( { direction: "vertical" } );
            CSS: Basic width & height for the main DIV.
                div[rel='scrollcontent1'] { width: 300px; height: 300px; }
            The script creates:
                .scrollcontent1-content
                .scrollcontent1-bar
                .scrollcontent1-drag
               
            Scrolling to:
                The A HREF should have a rel attribute with the ID of the element that the script will scroll to on A HREF click.
                    <p id="paragraph-1"><a href="#" rel="paragraph-1">Click to scroll...</a></p>
    */
   
    $( document ).ready( function() {
        $( "div[rel='scrollcontent1']" ).customscroll( { direction: "vertical" } );
        $( "div[rel='scrollcontent2']" ).customscroll( { direction: "horizontal", bounce:0 } );
    });
   

   
</script>hcdyffffugiffUff6f7gh8higg6gGvvh

कोणत्याही टिप्पण्‍या नाहीत:

लोकप्रिय पोस्ट