2 Replies Latest reply on Sep 26, 2015 10:18 AM by Nancy OShea

    Help me with this function

    ernf77750424

      <script type="text/javascript">

          function show(id) {

             var e = document.getElementById(id);

             if(e.style.display == 'none')

                e.style.display = 'block';

             else

                e.style.display = 'none';

          }

       

        function hide(id){

        var h = document.getElementById(id);

        if(h.style.display == 'block')

        h.style.display = 'none';

        else

        h.style.display = 'block';

        }

      </script>

       

       

       

       

      <title>Globular Protiens</title>

      </head>

       

       

      <body>

       

       

        <b onload="hide('globins')" onclick="show('globins')">Globular Proteins</b>

        <div id="globins">

          <ul>

              <li></li>

                  <li></li>

                  <li></li>

                  <li></li>

                  <li></li>

                  <li></li>

                  <li></li>

              </ul>

          </div>

       

       

      </body>