Advertisement
Guest User

Scrollbar Custom jQuery working

a guest
Sep 24th, 2012
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.90 KB | None | 0 0
  1. <html>
  2.   <head>
  3.     <title>Testing Scrollbar</title>
  4.     <style>
  5.         #everything { height: 100px; overflow:auto; background:#274147; }
  6.     </style>
  7.     <link href="jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" />
  8.   </head>
  9.   <body>
  10.     <div class="box">
  11.       <form name="everything" id="everything" action="#" method="post">
  12.           <header>Registration Information</header><br/>
  13.           <label>First Name<font color="red">*</font>: <input type="text" name="fname" id="fname" /> </label><br/>
  14.           <label>Last Name<font color="red">*</font>: <input type="text" name="lname" id="lname" /> </label><br/>
  15.           <label>Address<font color="red">*</font>: <input type="text" name="address" id="address" /> </label><br/>
  16.           <label>City<font color="red">*</font>: <input type="text" name="city" id="city" /> </label><br/>
  17.           <label>State<font color="red">*</font>: <input type="text" name="state" id="state"/> </label><br/>
  18.           <label>Zip Code<font color="red">*</font>: <input type="text" name="zip" id="zip"/> </label><br/>
  19.           <label>Phone Number<font color="red">*</font>: <input type="text" name="phone" id="phone"/> </label><br/>
  20.           <label>Fax: <input type="text" name="fax" id="fax"/> </label><br/>
  21.           <label>Email<font color="red">*</font>: <input type="text" name="email" id="email"/> </label><br/>
  22.       </form>
  23.     </div>
  24.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  25.     <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
  26.     <!-- mousewheel plugin -->
  27.     <script src="jquery.mousewheel.min.js"></script>
  28.     <!-- custom scrollbars plugin -->
  29.     <script src="jquery.mCustomScrollbar.js"></script>
  30.     <script>
  31.       $(window).load(function(){
  32.         $("#everything").mCustomScrollbar();
  33.       });
  34.     </script>
  35.   </body>
  36. </html>​​​​​
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement