I think I know what you mean, I made a jsFiddle for you where you can see how I did it. I used jQuery to check how much you have scrolled down and compared it to the distance that the divs have to the top of the page.
http://jsfiddle.net/Denocle/QBf59/2/
Let's say your HTML looks like this:
<div id="menu">
<div id="menu-hello"><a href="#hello">Hello</a></div>
<div id="menu-about"><a href="#about">About</a></div>
<div id="menu-contact"><a href="#contact">Contact</a></div>
</div>
<div class="big" id="hello">
<h1>Hello</h1>
Text
</div>
<div class="big" id="about">
<h1>About</h1>
Text
</div>
<div class="big" id="contact">
<h1>Contact</h1>
Text
</div>
Then we have some jQuery like this:
$(window).scroll(function() {
$('.big').each( function(i){
var top_of_object = $(this).position().top;
var bottom_of_object = $(this).position().top + $(this).outerHeight();
var top_of_window = $(window).scrollTop();
var id = $(this).attr('id');
if (top_of_window >= top_of_object && top_of_window <= bottom_of_object) {
$('#menu-'+id).css({'opacity':'0.5'});
} else {
$('#menu-'+id).css({'opacity':'1'});
}
});
});
This will determine if the top of the browser window is inside one of the divs with the "big" class and then change the opacity for the divs in the menu with the id prefixes of "menu-".
I reused some code from this thread:
https://stackoverflow.com/a/9099127/1713635