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! 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. Link to comment https://forums.phpfreaks.com/topic/198439-display-toggle/#findComment-1041510 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.