Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7813675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:57:16+00:00 2026-06-02T04:57:16+00:00

http://2012.delineamultimedia.com/#home_contact I know this is a bit hacky but, I need this link and

  • 0

http://2012.delineamultimedia.com/#home_contact

I know this is a bit hacky but, I need this link and other anchor tags to do the same.
When going to this link the title of the page (section) is blocked off because of the fixed navigation is covering the content off…

I’m using the scrollto jQuery plugin and giving it a negative margin-top when it arrives to compensate for the fixed navigation… here is an example of that…

<script type="text/javascript">
$(function() {
  $('ul.nav a').bind('click',function(event){
    var $anchor = $(this);

     $('html, body').stop().animate({
     scrollTop: $($anchor.attr('href')).offset().top-139
     }, 1500,'easeOutBounce');

     event.preventDefault();
     });
 });
</script>

The problem is this only works when the scrollto function is triggered. So, I’ve been trying to do the following and I need help to get this to work so that when someone directly links to the hash tag http://2012.delineamultimedia.com/#home_contact or any others for that matter the page knows to move down extra space so that it clears the navigation.

<script type="text/javascript">
$(document).ready(function(){
function checkHash() {
    if (location.hash === "#home_contact") {
        navClick('#home_contact');
    }
    else if (location.hash === "#/index.html") {
        navClick('index.html');
    }
}
window.onhashchange = checkHash;
window.onload = checkHash;
});
</script>

The point of this is to activate the navItem when the hash link is clicked on. For some reason this isn’t working though, Can anyone help me get this to work? Thanks in advance for your time! I hope this makes sense, hard to explain.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T04:57:18+00:00Added an answer on June 2, 2026 at 4:57 am

    I would piggyback on your existing functionality. Trigger a click event on your nav on page load.

     $(document).ready(function(){
           switch(location.hash){
                 case '#home_contact':
                     $('a.contact-nav').trigger('click');
                     break;
                 default:
                     $('#top_logo a').trigger('click');
                     break;
           };     
     });
    

    In other words. Clicking on your nav already works, you can just reuse that functionality.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ie., follow this link: http://googleblog.blogspot.com/2012/04/toward-simpler-more-beautiful-google.html Notice, you'll see some spinning gears, and then the
http://2012.delineamultimedia.com/delinea_new_12.html#home_portfolio_botm_bg This portfolio template has a section that includes what looks to be a
I follow example from here using section listview http://lalit3686.blogspot.com/2012/05/sectionadapter.html But how can I implement
I read http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html but have some issues. For pre-honeycomb I want a custom title,
on this site, http://dncminneapolis2012.com/new2 the content (where it says Minneapolis 2012 Democratic National Convention)
I saw this: http://memeburn.com/2012/02/anonymous-is-shutting-down-the-internet/?utm_source=twitterfeed&utm_medium=twitter&utm_campaign=Feed%3A+memeburncom+%28memeburn%29 But I've seen it loads. The part I'm referring to
I'm referring to this article here http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/ In my current application I have two
I am working on this site for a client: http://djzimmie.com/2012/03/08/miss-march-2011/ The linter says everything
I've been trying to use cursor loader.I started following this tutorial http://responsiveandroid.com/2012/03/19/using-an-android-cursor-loader-with-a-content-provider.html but could
I'm reading this: http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/ I'm using backbone.js. I love it, though it requires too

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.