Thread: Help!
View Single Post
Old 11-05-2004, 04:57 AM   #4 (permalink)
kaeli69
Registered User
 
kaeli69's Avatar
 
Join Date: Apr 2003
Posts: 30
kaeli69 is an unknown quantity at this point
That's funny - this works fine for me in IE6.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
</head>

<body>
<script type="text/javascript">
function toggle(objid)
   {
   if (document.getElementById)
      {
      var obj = document.getElementById(objid);
      if (obj.style)
         {
         if (obj.style.display == "none") 
            {
            obj.style.display="";
            }
         else 
            {
            obj.style.display = "none";
            }
         }
      }
   }
</script>
<p><a href="#" onclick="toggle('news')">fgfgfg</a></p>
<div id="news" style="display:none">hjklkljklkl</div>
</body>
</html>
kaeli69 is offline   Reply With Quote