|
<style type="text/css"> *{color:black; font-family:Maiandra GD } #calculator{width:160px; height:195px; border: 5px inset; background-color:tan; } </style> <div id="calculator"> <center> <form id="calc"> Calculator<hr> <input type="text" id="form1" readonly><br><br> <input type="button" value="1" onClick="calc.form1.value += 1"> <input type="button" value="2" onClick="calc.form1.value += 2"> <input type="button" value="3" onClick="calc.form1.value += 3"> <input type="button" value="4" onClick="calc.form1.value += 4"><br> <input type="button" value="5" onClick="calc.form1.value += 5"> <input type="button" value="6" onClick="calc.form1.value += 6"> <input type="button" value="7" onClick="calc.form1.value += 7"> <input type="button" value="8" onclick="calc.form1.value += 8"><br> <input type="button" value="9" onClick="calc.form1.value += 9"> <input type="button" value="0" onClick="calc.form1.value += 0"> <input type="button" value="+" onClick="calc.form1.value += '+'"> <input type="button" value="-" onClick="calc.form1.value += '-'"><br> <input type="button" value="*" onClick="calc.form1.value += '*'"> <input type="button" value="รท" onClick="calc.form1.value += '/'"> <input type="button" value="=" onClick="calc.form1.value=eval(calc.form1.value)"> <input type="button" value="C" onClick="calc.form1.value = ''"> <sup><a href="http://www.gizmo385tech.com">Gizmo385 Technovations</a></sup> </div> |
|
function changeImageOneUrl() { var ImageOneUrl = prompt("Please enter the new image URL","New Image URL"); document.getElementById("ImageOne").src = ImageOneUrl; } function changeImageOneFile() { var ImageOneFile = document.getElementById("ImageOneUp").value; document.getElementById("ImageOne").src = ImageOneFile; } function changeImageTwoUrl() { var ImageTwoUrl = prompt("Please enter the new image URL","New Image URL"); document.getElementById("ImageTwo").src = ImageTwoUrl; } function changeImageTwoFile() { var ImageTwoFile = document.getElementById("ImageTwoUp").value; document.getElementById("ImageTwo").src = ImageTwoFile; } |
|
*{color:black; font-family:Maiandra GD } #ImageOne{border:inset 5px}; #ImageTwo{border:inset 5px}; |
|
<html> <head> <title> Image Viewer 3.0 - Gizmo385 Technovations </title> <link rel="stylesheet" type="text/css" href="styles.css" /> <script type="text/javascript" src="scripts.js"></script> </head> <body> <img src="" id="ImageOne" alt="Image One"><br> <input type="file" id="ImageOneUp" onchange="changeImageOneFile()"><br> <input type="button" value="Change Image URL" onclick="changeImageOneUrl()"><br><br> <img src="" id="ImageTwo" alt="Image Two"><br> <input type="file" id="ImageTwoUp" onchange="changeImageTwoFile()"><br> <input type="button" value="Change Image URL" onclick="changeImageTwoUrl()"><br><br> Viewing a local image is a feature only available on Internet Explorer right now. </body> </html> |
|
<html> <head> <title> If Statement Example </title> <script type="text/javascript"> <!-- Use this to hide code from browsers that do not have JavaScript enabled //If Statement Example function promptTest() { var promptInfo = document.getElementById("prompt").value; if(promptInfo == "Fail") { alert("You entered Fail!"); } else if(promptInfo == "Win") { alert("You entered Win!"); } else { alert("You entered something completely random! What the heck is: " +promptInfo);b } } </script> <style type="text/css"> *{ font-family: Maiandra GD; } </style> </head> <body> Input "Fail", "Win", or something completely random <br> <input type="text" id="prompt" value= ""> <input type="button" value="Click Me!!" onClick="promptTest()"> </body> </html> |