Welcome to the RuneGlory Wiki, where we do our best to make your life easier!

You can use the search menu on the right side of the wiki (or at the bottom if you are on mobile) to search for the page you are looking for. The most popular pages can be found on the right side of the wiki aswell (or again at the bottom if you are on mobile).

Difference between revisions of "Dannyx Test"

From RuneGlory
Jump to: navigation, search
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
<html><body>
 +
<button type="button"
 +
onclick="document.getElementById('demo').innerHTML = Date()">
 +
Click me to display your current Date and Time.</button>
 +
<p id="demo"></p>
 +
</body></html>
 +
 +
 +
<html>
 +
<body>
 +
<button type="button" onclick="myFunction()">GMT -5</button>
 +
<p id="demo"></p>
 +
<script>
 +
function myFunction() {
 +
    document.getElementById("demo").innerHTML = "this would be table";}
 +
</script>
 +
</body>
 +
</html>
 +
<html>
 +
<body>
 +
<button type="button" onclick="myFunction()">GMT -5</button>
 +
<p id="demo"></p>
 +
<script>
 +
function myFunction() {
 +
    document.getElementById("demo").innerHTML = "this would be gmt -5 table";
 +
}
 +
</script>
 +
</body>
 +
</html>
 +
<html>
 +
<body>
 +
<button type="button" onclick="myFunction()">GMT -5</button>
 +
<p id="demo"></p>
 +
<script>
 +
function myFunction() {
 +
    document.getElementById("demo").innerHTML = "this would be gmt -5 table";
 +
}
 +
</script>
 +
</body>
 +
</html>
 +
<html>
 +
<body>
 +
<button type="button" onclick="myFunction()">GMT -5</button>
 +
<p id="demo"></p>
 +
<script>
 +
function myFunction() {
 +
    document.getElementById("demo").innerHTML = "this would be gmt -5 table";
 +
}
 +
</script>
 +
</body>
 +
</html>
 +
<html>
 +
<body>
 +
<button type="button" onclick="myFunction()">GMT -5</button>
 +
<p id="demo"></p>
 +
<script>
 +
function myFunction() {
 +
    document.getElementById("demo").innerHTML = "this would be gmt -5 table";
 +
}
 +
</script>
 +
</body>
 +
</html>
 +
<html>
 +
<body>
 +
<button type="button" onclick="myFunction()">GMT -5</button>
 +
<p id="demo"></p>
 +
<script>
 +
function myFunction() {
 +
    document.getElementById("demo").innerHTML = "this would be gmt -5 table";
 +
}
 +
</script>
 +
</body>
 +
</html>
 +
 +
 +
  
 
<html lang="en">
 
<html lang="en">
Line 169: Line 246:
  
  
 +
</body>
 +
</html>
  
  
 +
<html>
 +
<body>
 +
 +
<h2>Event Promotions</h2>
 +
<p>Select your timezone to see which hour an event will appear</p>
 +
 +
 +
  <input list="time zones" name="time zone">
 +
  <datalist id="time zones">
 +
    <option value="Hawaii">(GMT-10:00) Hawaii</option>
 +
  </datalist>
 +
  <input type="submit">
 +
</form>
  
  
Line 181: Line 273:
  
  
 +
<html>
  
 +
<body>
 +
<form id="example" name="example">
 +
 +
    <select id="voltage" onchange="updateText('voltage')">
 +
        <option value="this would be data">gmt -5</option>
 +
        <option value="this would also be data">gmt -4</option>
 +
    </select>
  
 +
    <br />
 +
    <input type="text" value="" id="voltageText" />
 +
</form>
  
<?php
+
<script type="text/javascript">
$con = mysql_connect("localhost","root","root");
+
 
$db = mysql_select_db("Time_sheet",$con);
+
function updateText(type) {
  $get=mysql_query("SELECT Emp_id FROM Employee ORDER BY Emp_id ASC");
+
  var id = type+'Text';
$option = '';
+
  document.getElementById(id).value = document.getElementById(type).value;
  while($row = mysql_fetch_assoc($get))
 
{
 
  $option .= '<option value = "'.$row['Emp_id'].'">'.$row['Emp_id'].'</option>';
 
 
}
 
}
?>
+
</script>
<html>
 
<body>
 
<form>
 
<select>
 
<?php echo $option; ?>
 
</select>
 
</form>
 
 
</body>
 
</body>
 +
 
</html>
 
</html>
 +
 +
 +
//https://www.w3schools.com/code/tryit.asp?filename=FT2DOGRE1KSP

Latest revision as of 08:30, 7 July 2018




HTML for Time Zone dropdown/select


Event Promotions

Select your timezone to see which hour an event will appear





//https://www.w3schools.com/code/tryit.asp?filename=FT2DOGRE1KSP