Skip to main content

Search and Top Navigation

Ticket #3677: ui-script-rerun.html
File ui-script-rerun.html, 1.0 KB (added by dmethvin, December 19, 2008 03:07AM UTC)

Test case main

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>Tester</title>
    <style type="text/css">
      #container { background:yellow; width:200px; }
    </style>
    <script type="text/javascript" src="jquery-1.2.6.js"></script>
   <script type="text/javascript" src="jquery-ui-1.6rc2.js"></script>
    <script type="text/javascript">
      $(function () {
        $("button:first").click(function () {
              if ($("#container").is(":visible")) {
                var s = "hiding now";
                $("#container").hide("slide");
              } else {
                var s = "showing now";
                $("#container").show("slide");
              }
              $("#adiv").text(s);
            });
      });
    </script>
  </head>
  <body>
    <button>Do It</button>
    <div id="container">
      <script type="text/javascript" src="alert.js"></script>
      Hi
    </div>
    <div id="adiv"></div>
  </body>
</html>

Download in other formats:

Original Format