Sha256: 28ceb04d428013391d1e9c81f0f170a19bfeab2197bcb34a9822e34b1b2b250f

Contents?: true

Size: 1.26 KB

Versions: 37

Compression:

Stored size: 1.26 KB

Contents

<html>
<head>
<title>Test Hidden Message</title>

<style type="text/css">
   div.hide { display: none; margin-left: auto; margin-right: auto; }
   div.show { display: block; margin-left: auto; margin-right: auto; }
   #Container { background: #f00; color: #fff; width: 300px; height: 300px; padding-top: 100px; text-align: center; font: bold 2em Verdana, Helvetica, sans-serif; }

</style>

<script type="text/javascript">
function show(divId)
{
   var divContainer = document.getElementById("Container");
   var divArr = divContainer.getElementsByTagName("div");
   for (var i = 0; i < divArr.length; i++)
   {
      if ( divArr[i].id == divId )
      {
         divArr[i].className = "show";
      }
      else
      {
         divArr[i].className = "hide";
      }
   }
}
</script>
</head>

<body>
<div id="Container">
   <div id="successError" class="hide">Success!</div><div id="failureError" class="hide">Failure!</div>
</div>
<form style="width: 300px; text-align: center;">
<p>Click on a button to display a message.</p>
   <input type="button" name="success" value="Success" onclick="show( this.name + 'Error' );" />
   <input type="button" name="failure" value="Failure" onclick="show( this.name + 'Error' );" />
</form>
</body>
</html>

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
firewatir-1.9.4 unittests/html/cssTest.html
firewatir-1.9.3 unittests/html/cssTest.html
firewatir-1.9.2 unittests/html/cssTest.html
firewatir-1.9.2.rc1 unittests/html/cssTest.html
firewatir-1.9.1 unittests/html/cssTest.html
firewatir-1.9.1.rc1 unittests/html/cssTest.html
firewatir-1.9.0 unittests/html/cssTest.html
firewatir-1.9.0.rc7 unittests/html/cssTest.html
firewatir-1.9.0.rc6 unittests/html/cssTest.html
firewatir-1.9.0.rc5 unittests/html/cssTest.html
firewatir-1.9.0.rc4 unittests/html/cssTest.html
firewatir-1.9.0.rc3 unittests/html/cssTest.html
firewatir-1.9.0.rc2 unittests/html/cssTest.html
firewatir-1.9.0.rc1 unittests/html/cssTest.html
firewatir-1.8.1 unittests/html/cssTest.html
firewatir-1.8.1.rc1 unittests/html/cssTest.html
firewatir-1.8.0 unittests/html/cssTest.html
firewatir-1.8.0.rc1 unittests/html/cssTest.html
firewatir-1.7.1 unittests/html/cssTest.html
firewatir-1.7.0 unittests/html/cssTest.html