ScrollFollow Help! Html and jquery related, so id prefer people with experience to respond, thanks!?
-
Hey everybody, I got a problem. Id like to have the webpage navigation menu follow down the page as the user scrolls. You can take a look at the page at http://www.apollonwear.com/kiriaze.html So far i have this as my index.html: <head> <header><!-- User defined head content such as meta tags --> <title></title> <link rel="stylesheet" type="text/css" media="screen" href="styles.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> var $j =jQuery.noConflict();</script> <script type="text/javascript" src="ui.core.js"></script> <script type="text/javascript" src="jquery.easing.js"></script> <script type="text/javascript" src="jquery.cookie.js"></script> <script type="text/javascript" src="jquery.scrollFollow.js"></script> <script type="text/javascript"> $j( document ).ready( function () { $j( '#menuBar' ).scrollFollow( { speed: 1000, offset: 60, } ); } ); </script> <script type="text/javascript" src="jquery.scrollTo-min.js"></script> <script type="text/javascript" src="javascript.js"></script> </head> <body> <div id="menuBar" class="section part"> <ul class="links"> <li><a title="$(...).scrollTo( 'li:eq(14)', 800 );" id="relative-selector" href="#">Home</a></li> <li><a title="$(...).scrollTo( $('div li:eq(14)'), 800 );" id="jquery-object" href="#">About</a></li> <li><a title="$(...).scrollTo( $('ul').get(2).childNodes[20], 800 );" id="dom-element" href="#">Works</a></li> <li><a title="$(...).scrollTo( 150, 800 );" id="absolute-number" href="#">Blog</a></li> <li><a title="$(...).scrollTo( { top:800, left:700}, 800 );" id="absolute-number-hash" href="#">Contact</a></li> </ul><!--end #menuBar--> <div id="pane-target" class="pane"> <ul class="elements" style="height:800px; width:1200px;"> <div id="relative-selector"> </body> </html> And heres my css: body { color: #000000; font-size: 0.85em; line-height: 1.4; font-family: Helvetica, Arial, Geneva, sans-serif; background-image: url(images/backgroun.jpg); } #menuBar { position:absolute; margin-top: 20px; height: 26px; color: none; font-family: Helvetica, Arial, Geneva, sans-serif; } #menuBar #current { color: #888888; } #menuBar #current:hover { color: #000000; } #menuBar .currentAncestor { } * Parent - Level 0 */ #menuBar ul{ margin: 0; padding: 0; list-style-type: none; } #menuBar li { display: block; float: left; } #menuBar a { display: block; padding: 5px 10px; color: #cccccc; text-decoration: none; float: left; } #menuBar a:hover { color: #888888; } #menuBar a:active { color: #000000; } Any ideas?
-
Answer:
Might try position:fixed; for the menu container. Ron
Constantine K at Yahoo! Answers Visit the source
Related Q & A:
- How do I create an HTML table, in jQuery, with JSON data?Best solution by Stack Overflow
- how to add a form with a unique id on jquery?Best solution by Stack Overflow
- Why cant i view my contacts display image? please help if you know ,thanks?Best solution by Yahoo! Answers
- How do i scan something? First time using a scaner and i dont think im doing it right. help. thanks?Best solution by Yahoo! Answers
- Is there a remedy for the Adobe Flash Player 10-related delays that I frequently experience during voting?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.