From 2013.igem.org
(Difference between revisions)
|
|
(55 intermediate revisions not shown) |
Line 1: |
Line 1: |
- | ourTestPage.html
| |
- | <HTML>
| |
- | <HEAD>
| |
- | <TITLE>Our Display Test</TITLE>
| |
- | <script src="modules_control.js" type="text/javascript">
| |
- | </script>
| |
- | <script type="text/javascript">
| |
- | AddModule("dynamic_display.js");
| |
- | </script>
| |
- | </HEAD>
| |
- | <BODY>
| |
- | <div class="dBackgroundBox" id="bgModBox">
| |
- | <p><a onclick="ModifyBGColor('bgModBox','#FF0000');">Click here to modify the background color!</a></p>
| |
- | </div>
| |
- | <div class="dColorBox" id="cModBox">
| |
- | <p><a onclick="ModifyTextColor('cModBox','#00FF00');">Click here to modify the text color!</a></p>
| |
- | </div>
| |
- | <div class="dSizeBox" id="szModBox">
| |
- | <p><a onclick="ModifyBoxSize('szModBox','900px', '100px');">Click here to modify the box size!</a></p>
| |
- | </div>
| |
- | <div class="dPositionBox" id="pModBox">
| |
- | <p><a onclick="ModifyBoxPosition('pModBox','100px', '100px');">Click here to modify the box position!</a></p>
| |
- | </div>
| |
- | </BODY>
| |
- | </HTML>
| |
- | [/CODE]
| |
| | | |
- |
| |
- | <!DOCTYPE html>
| |
- | <html>
| |
- | <head>
| |
- | <script>
| |
- | function displayDate()
| |
- | {
| |
- | document.getElementById("demo").innerHTML=Date();
| |
- | }
| |
- | </script>
| |
- | </head>
| |
- | <body>
| |
- |
| |
- | <h1>JavaScript</h1>
| |
- | <p id="demo">Welcome</p>
| |
- |
| |
- | <button type="button" onclick="displayDate()">Display Date</button>
| |
- |
| |
- | </body>
| |
- | </html>
| |
Latest revision as of 08:04, 23 September 2013