Forked from: oishii_mahou's 2018-01-16 1st View Diff (66)

forked: 2018-01-16 1st

shenye1972

License: MIT License

Fork
0
Fav
0
View
40
  • Play

Fullscreen

Smart Phone

  • Readme
  • JavaScript 0 lines
  • HTML 70 lines
  • CSS 15 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>足場の数を計算(基礎)project.html</title>

<script type="text/javascript">
function setType( $checked ) {
var $elementReference = document.getElementById( "myform" );
$elementReference.checked = $checked;
}
function getType($checked) {
var $elementReference = document.getElementById( "myform" );
var $checked = $elementReference.checked;
document.getElementById( "output" ).innerHTML = $checked;
}
</script>

</head>

<body>

<form id="myform" action="">

<input type="radio" name ="rdBtngp_1" value="1800mm" checked="checked" id="rdb_1" accesskey= " 1 " />1800mm
<input type="radio" name ="rdBtngp_1" value="900mm" id="rdb_2" accesskey=" 2 " />900mm

<p>長さを入力して単位を設定して計算;
<input type="text" name ="txBtn_1" value="" checked="checked" id="txBtn_1" accesskey=" 1A " />
</p>

<input type="radio" name ="rdBtngp_2" value="mm" checked="checked" id="rdb_3" accesskey=" 3 " />mm
<input type="radio" name ="rdBtngp_2" value="cm" id="rdb_4" accesskey=" 4 " />cm
<input type="radio" name ="rdBtngp_2" value="M" id="rdb_5" accesskey=" 5 " />M

<input type="button" value="計算します" onclick="func1();" >
<input type="reset" value="リセット" onclick="document.form.reset;" >
<div id="output"></div>

</form>

<script type="text/javascript">
function func1($event){
var $elementReference = document.getElementById("rdb_1");
var $checked = $elementReference.checked;
if("$checked != rbd_1"){
alert("900mmで計算ですか?")
}else{
}
}



</script>

</body>
</html>
  • forked: 2018-01-16 1st
  • forked: 2018-01-16 1st

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

shenye1972

Author

HTML/Javascript興味からどれだけのものが出来るかチャレンジしてます!

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags