For below code I want scrollbar that can scroll content inside div #inner_content. I have tried lots of scrollbars, but, nothing works. I have purchased this scrollbar which is also not working for my code. Suggest scrollbar which will work!
Help me please...
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"</script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.22/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#navlist li a').click(function(){
var page= $(this).attr('href');
if ($('#content').is(':hidden')) {
$('#inner_content').load('' + page + '.php',
function(){
$('#content').show("slide",{direction:"down"},1000);
});
}
else {
$('#content').hide("slide",{direction:"down"},1000,
function(){
$('#inner_content').load('' + page + '.php');
});
$('#content').show("slide",{direction:"down"},1000);
}
return false;
});
});
</script>
HTML
<div id="wrapper">
<ul id="navlist">
<li><a href="about">About Us</a> </li>
<li><a href="services">Services</a> </li>
<li><a href="works">Works</a> </li>
<li><a href="clients">Clients</a> </li>
<li><a href="contact">Contact Us</a> </li>
</ul>
<div id="content">
<div id="inner_content"></div>
</div>
</div>
CSS
#content {
width:660px;
height:100%;
min-height:770px;
padding:0;
display: none;
}
#inner_content{
display: inline-block;
position:relative;
margin:20px 10px 10px 20px;
padding:10px;
width: 610px;
height: 400px;
}
about.php
<div>
<h1>About</h1>
</div>
services.php
<div>
<h1>Services</h1>
</div>