I have a code from here, but it gives me a error.
Uncaught TypeError: Failed to execute 'scroll' on 'Window': 2 arguments required, but only 1 present.
I have jQuery 1.8.3 installed, and script is on bottom of page. Code:
<script type='text/javascript'>
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 150) {
$(".navigation").addClass("darkHeader");
} else {
$(".navigation").removeClass("darkHeader");
}
});
</script>
Any help? On jsfiddle everything working. Code is on IPBoard 3.4.8.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments