Again I have tried putting this script in to a website and it is not functioning correctly...
Can someone please help me understand what may be malfunctioning?
UPDATE:
My tested code which works in another instance:
$(function(){
$(window).scroll(function(){
if($(this).scrollTop() > 100) {
$('').fadeOut('slow');
$('#logo-img img')
.css({'width':'216px','height':'73px'})
.attr('src','http://...logo_01_white.png');
}
if($(this).scrollTop() < 100) {
$('').fadeIn('fast');
$('#logo-img img')
.css({'width':'216px','height':'73px'})
.attr('src','http://...logo_01.png');
}
});
});
The website I am trying to implement my code on:
http://www.templatemonster.com/demo/52089.html
Can anyone see where these lines may have been calling the wrong classes?
$('.logo.pull-left').fadeOut('slow');
$('.logo_h.logo_h__img')
logo pull-leftare classes then you need to write it as.logo .pull-left. All the classes should have dots.before and for ids#before.logo pull-leftis a class or a id selector .