Porl123 Posted April 13, 2010 Share Posted April 13, 2010 function showHideLinks(menu) { var menuItems = document.getElementsByName(menu); for(var i in menuItems) { if(menuItems[i].style.display != '') { menuItems[i].style.display = ''; } else { menuItems[i].style.display = 'none'; } } } I've got this toggle function which collapses sections of the navigation bar and it works in most browsers but not this older version of IE that I have. Does anyone see anything wrong with this? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/198439-display-toggle/ Share on other sites More sharing options...
Porl123 Posted April 14, 2010 Author Share Posted April 14, 2010 I tried using visibility but that made it a bit worse. D: <tr name="misc"> <td class="NavTd"><a href="/updates.php" target="mainSect">Updates</a></td> </tr> Here's an example of the table row it's supposed to toggle if it helps. Quote Link to comment https://forums.phpfreaks.com/topic/198439-display-toggle/#findComment-1041510 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.