Guardian-Mage Posted May 4, 2007 Share Posted May 4, 2007 <!-- function toggleDisplay(which) { var myId = document.getElementById('news1'); if (myId.style.display=="block") { myId.style.display="none"; } else if (myId.style.display=="none") { myId.style.display="block"; } } --> Above is an external javascript file I included in the head of my html document Whenever I try to execute the function in Firefox it comes up with "myId has no properties" and the script will not work. For all code go to http://ictonentertainment.com/wamboldt/newicton/ and look at the source PLEASE NOTE: THIS SITE IS NOT COMPLETE AND THE CSS IS TEMPORARY AND SUCKS Quote Link to comment Share on other sites More sharing options...
Guardian-Mage Posted May 4, 2007 Author Share Posted May 4, 2007 My bad, forgot to add the ID to the elements, that was kinda dumb 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.