Menu
I’m using a JavaScript function to change the margin property of a div. I click once and it changes just fine, I click the other button and and it’s supposed to change a back, but doesn’t… in Firefox anyway…
function swapMargin() {
document.getElementById(‘buttons’).style.margin = “0”;
}
function swapBack() {
document.getElementById(‘buttons’).style.margin = “0 250px 0 0”;
}
And the buttons obviously call each function…
The bug is in FF …. seems to set the style once, but wont do it again!
PLEASE HELP!