2013-02-14, 05:11 PM
Willing to pay to have this done. PM me if interested.
Hey everyone,
I am trying to accomplish something that IMO seems very basic, but my Javascript ineptitude is getting in the way.
Basically, I want #control_menu to disappear when the element #posts is in view. To accomplish this, I found this plugin: http://remysharp.com/2009/01/26/element-...nt-plugin/
However, my code doesn't seem to work. Can anyone point me in the right direction? Maybe there's an easier way to do this?
Hey everyone,
I am trying to accomplish something that IMO seems very basic, but my Javascript ineptitude is getting in the way.
Basically, I want #control_menu to disappear when the element #posts is in view. To accomplish this, I found this plugin: http://remysharp.com/2009/01/26/element-...nt-plugin/
However, my code doesn't seem to work. Can anyone point me in the right direction? Maybe there's an easier way to do this?
<script type="text/javascript">
jQuery.noConflict();
$('#posts').bind('inview', function (event, visible) {
if (visible == true) {
$('#control_menu').css({ 'display': 'none'});
} else {
$('#control_menu').css({ 'display': 'inline'});
}
});
})(jQuery);
</script>