Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function(){ // document ready
- var stickyTop = $('#desc').offset().top; // returns number
- $(window).scroll(function(){ // scroll event
- var windowTop = $(window).scrollTop(); // returns number
- if (stickyTop < windowTop) {
- $('#desc').css({ position: 'fixed', top: 0 });
- }
- else {
- $('#desc').css('position','static');
- }
- });
- });
- </script>
- ------------------------------------>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $(".slidingDiv").hide();
- $(".show_hide").show();
- $('.show_hide').toggle(function(){
- $(".slidingDiv").slideDown(
- function(){
- $("#navigation").text("navigation")
- }
- );
- },function(){
- $(".slidingDiv").slideUp(
- function(){
- $("#navigation").text("navigation")
- }
- );
- });
- });
- </script>
- ---------------------------------------->
Advertisement
Add Comment
Please, Sign In to add comment