tuanphan Posted July 23, 2021 Share Posted July 23, 2021 On 7/22/2021 at 10:43 AM, scottneufeld said: Hello, Looking to continue this transition above but also change the cart & burger menu images. Any advice? var logoTopIMG = "insert photo file"; var logoSclIMG = "insert photo file"; var burgTopIMG = "insert photo file"; var burgSclIMG = "insert photo file"; var cartTopIMG = "insert photo file"; var cartSclIMG = "insert photo file"; $(window).scroll(function() { var value = $(this).scrollTop(); if (value > 800) $(".header-title-logo img").attr("src", logoSclIMG); $(".burger-box").css("background-image").attr("src", burgSclIMG); $(".cart").css("background-image").attr("src", burgSclIMG); /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\Obviously incorrect, any pointers??? else $(".header-title-logo img").attr("src", logoTopIMG); etc... });</script> Can you share link to your site? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted July 27, 2021 Share Posted July 27, 2021 On 7/26/2021 at 8:42 AM, scottneufeld said: Sent in PM Can you send it again? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.