when I hover over and click on any of my buttons entitled, “Online”, "Offline, and “All” I want my information display screen to change to black, and when I mouseout off them it will change back to its original blue
For some reason, this is just not working! The entire information screen stays black even before mouseover! I’d really appreciate your help! Thanks in advance! Cheers!
@Layer, no I changed that to the correct buton class which is “online-status”, and it is still doing the same thing.
Code here:
var tvStuff = document.querySelector("online-status"); tvStuff.addEventListener("mouseover", function(){ $(".displayOutPutHere").addClass("on"); }); tvStuff.addEventListener("mouseout", function(){ $(".displayOutPutHere").removeClass("on"); });
See here: https://codepen.io/IDCoder/pen/mXMqGV?editors=0010 …thanks in advance for your help!
OMG!!! It was that simple…thankyou savior!!! Why couldn’t the stupid inspector tool show that!
It was showing me this, (see screen-shot) at link but I couldn’t figure it out! https://s15.postimg.cc/i28hj9oa3/Twitch_TV_issues.jpg. So much hours wasted lastnight! Thankyou! Thankyou! Thankyou!
@miku86, all the mouseovers and mouseouts ae working now. However, when the page is refreshed the display screens are black by default, when they should be blue by default first. Can you tell me why this is? Thanks for your help in advance!
`
//…change video screen to tv state…
//for “Online” button
var tvStuff = document.querySelector(".online-status");
tvStuff.addEventListener(“mouseover”, function(){
$(".displayOutPutHere").addClass(“on”);
});
tvStuff.addEventListener(“mouseout”, function(){
$(".displayOutPutHere").removeClass(“on”);
});
tvStuff.addEventListener(“mouseover”, function(){
$(".TV-screen").addClass(“on2”);
});
tvStuff.addEventListener(“mouseout”, function(){
$(".TV-screen").removeClass(“on2”);
});