ionik Posted July 20, 2008 Share Posted July 20, 2008 OK I'm quite new to the javascript world...even though Im a expert php programmer...o well anyways...what this does is just switches out which div tags are visible and hidden. This has been tested and works in FF but IE is junk as we know and doesnt like it.... is there something wrong with this? This is a simple crude way of doing it <script type="text/javascript"> /* This will simply show and hide the boxes for upcoming recent and match stats */ function matchi9panel(id) { document.getElementById(id).style.display = 'block'; document.getElementById('link1').className = 'left_content_chooser_button_down'; document.getElementById('link2').className = 'left_content_chooser_button_down'; document.getElementById('link3').className = 'left_content_chooser_button_down'; if(document.getElementById('1').style.display = 'block' && id != '1') { document.getElementById('1').style.display = 'none'; } if(document.getElementById('2').style.display = 'block' && id != '2') { document.getElementById('2').style.display = 'none'; } if(document.getElementById('3').style.display = 'block' && id != '3') { document.getElementById('3').style.display = 'none'; } document.getElementById('link' + id).className = 'left_content_chooser_button'; } </script> the error i get is could not get the display property.... 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.