All pastes #95180 Raw Edit

Anonymous

public text v1 · immutable
#95180 ·published 2006-07-21 20:26 UTC
rendered paste body
<html>
  <head>
<script type="text/javascript">
<!--
  function ShowHide(id1, id2) {
    if (id1 != '') {
      xm(id1);
    }
    if (id2 != '') {
      xm(id2);
    }
  }  
  function xm(id) {
    var expander = null;
    if (document.getElementById) {
      expander = document.getElementById(id);
    } else if (document.all) {
      expander = document.all[id];
    } else if (document.layers){
      expander = document.layers[id];
    }
    if (!expander) {
    } else if (expander.style) {

      if (expander.style.display == "none") {
        expander.style.display = "";

        if (ppp == "1") {
          plus.src = "images/expand2.gif";
        } else if (ppp == "2") {
          plus2.src = "images/expand2.gif";
        }

      } else {
        expander.style.display = "none"; 

        if (ppp == "1") {
          plus.src = "images/expand.gif";
        } else if (ppp == "2") {
          plus2.src = "images/expand.gif";
        }

      }
    } else {
      expander.visibility = "show";
    }
  }


  function expandall() {

      if (expander.style.display == "none") {
        expander.style.display = "";
      }

          plus.src = "images/expand2.gif";
          plus2.src = "images/expand2.gif";
  }

//-->

</script>


  </head>

  <body>

  <a href="#" onClick="expandall(plus1_open);">expand all</a><br /><br />

    <table border='1' cellpadding='8'>
      <tr>
        <td>

    <a href="javascript:ShowHide('plus1_open','plus1_closed');" onClick="ppp='1';">
    <img name="plus" src="images/expand.gif" border="0">&nbsp;Question 1</a>
    <div id="plus1_open" style="DISPLAY: none;">

      <br />
      <input type='radio' name='blah' value='1'> Yes     
      <br />
      <input type='radio' name='blah' value='1'> No     
      <br />
      <input type='radio' name='blah' value='1'> Declined Question     

    </div>

        </td>
      </tr>
      <tr>
        <td>

    <a href="javascript:ShowHide('plus2_open','plus2_closed');" onClick="ppp='2';">
    <img name="plus2" src="images/expand.gif" border="0">&nbsp;Question 2</a>
    <div id="plus2_open" style="DISPLAY: none;">testing...</div>

        </td>
      </tr>
    </table>

  </body>

</html>