What links a click/tap position to select an object on screen?

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

Was this solution helpful to you?

Find solution

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.