My question may be a bit vague, but here's what I have right now. Here is the fiddle I made
I need the More button to change the background color to orange each time the orange background button is pressed , and only if the Advanced div is still at the bottom of the screen (the “MORE” button is the slide show when it is pressed)

And some piece of code:
<script>
$(document).ready(function(){
$('.chatbox').hide();
$('#btn-chat').click(function() {
$("#blk-collaboration .chatbox").slideToggle("slow",function(){
$("#blk-collaboration #toggle").css("background","transparent");
});
$(this)
.toggleClass('wide');
});
});
function changeColor(color) {
document.getElementById("circle").style.backgroundColor = color;
}
document.getElementById("online").onclick = function() { changeColor("#92bf1e"); }
document.getElementById("offline").onclick = function() { changeColor("#747474"); }
document.getElementById("upcoming").onclick = function() { changeOrange("#f4b066"); }
</script>
Here are the buttons ...
<input id="online" type="button" value="Online" />
<input id="offline" type="button" value="Offline" />
<input id="upcoming" type="button" value="Orange Background" />
I tried to figure it out, but the color is button still changing more, even if it is already inserted ...
source
share