Sesquipedalian Posted September 5, 2009 Share Posted September 5, 2009 Why does this only work on firefox? Internet explorer seems to have errors with it: function list(what, how) { if (how == 'out') { what = document.getElementById(what); for (a in what.getElementsByClassName('sub')) { if (a >= 0) { what.getElementsByClassName('sub')[a].setAttribute('style', 'display:block;'); } } } else if (how == 'in') { what = document.getElementById(what); for (a in what.getElementsByClassName('sub')) { if (a >= 0) { what.getElementsByClassName('sub')[a].setAttribute('style', 'display:none;'); } } } } Thanks for your help, - Adam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.