1) Script Title: Sticky Content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ckycontent.htm
3) Describe problem: Try as I might, I am unable to get this to work with an attached css3 menu and style sheet. I am really new to coding, so could use some help. I got the demo to work just fine, but am unclear as to where to place the components, when my css style sheet is separate.
This:
Is as you can see just before the </head> tag.Code:<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="stickycontent.js"> /*********************************************** * Sticky Content script (c) Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ </script> <script> //initialize sticky content: jQuery(document).ready(function($){ $('#menu').stickyit({ gap: 5, stickyclass: "docked" }) }) </script> </head>
I put this:
here as it is at the end of the little bit of css on my html page.Code:.docked { -webkit-transition-duration: 0.5s; /*Webkit: Animation duration*/ -moz-transition-duration: 0.5s; /*Mozilla duration version*/ -o-transition-duration: 0.5s; /*Opera duration version*/ -webkit-box-shadow:0px 0px 30px gray; /*Safari shadow version*/ -moz-box-shadow:0px 0px 30px gray; /*Mozilla shadow version*/ box-shadow:0px 0px 30px gray; /*CSS3 shadow version*/ } </style>
I also tried putting it in here:
but that didn't do it either.Code:<!-- Start css3menu.com HEAD section --> <link rel="stylesheet" href="../Documents/GUTCHES/horizontalmenutest_files/css3menu2/style.css" type="text/css" /> <!-- End css3menu.com HEAD section -->
Any help is greatly appreciated!



Reply With Quote

Bookmarks