2016年6月3日 星期五

大腦測驗

http://pclevin.blogspot.tw/p/javascript.html


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<title>第一支javaScript</title>
</head>
<body>
<h2>document.write用法</h2>
<Script type ="text/javascript">
document.write("Hello world!!");
</Script>
</body>
</html>



打開wordpad貼上
另存新檔→test.html



大腦測驗
http://myweb.fcu.edu.tw/~a24/button.htm








產生id
http://pclevin.blogspot.tw/2014/06/javascript-onclick-thisid.html



電腦隨機0-9選出3個數字(數字可重複) 電腦隨機0-9選出3個數字(數字不重複)

電腦隨機0-9選出3個數字(數字可重複) 
ex:123, 019


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<title>第一支javaScript</title>
</head>
<body>
<h2>document.write用法</h2>
 <Script type ="text/javascript">

var r1,r2,r3,maxNum,minNum;
var r1=0;
var r2=0;
var r3=0;
maxNum=9;
minNum=0;



r1=Math.floor( Math.random() * (maxNum - minNum + 1) ) + minNum;
r2=Math.floor( Math.random() * (maxNum - minNum + 1) ) + minNum;
r3=Math.floor( Math.random() * (maxNum - minNum + 1) ) + minNum;

 document.write("亂數r1:",+r1,"亂數r2:",+r2,"亂數r3:",+r3);
 </Script>
</body>
</html>



電腦隨機0-9選出3個數字(數字不重複) 
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<title>第一支javaScript</title>
</head>
<body>
<h2>document.write用法</h2>
 <Script type ="text/javascript">

var r1,r2,r3,maxNum,minNum;
var r1=0;
var r2=0;
var r3=0;
maxNum=9;
minNum=0;


r1=Math.floor( Math.random() * (maxNum - minNum + 1) ) + minNum;
r2=Math.floor( Math.random() * (maxNum - minNum + 1) ) + minNum;
r3=Math.floor( Math.random() * (maxNum - minNum + 1) ) + minNum;

if(r2==r1)
{r2=r2+1;}
if(r3==r1)
{r3=r3+2;}
if(r3==r2)

{r3=r3+1;}


 document.write("亂數r1:",+r1,"亂數r2:",+r2,"亂數r3:",+r3);

 </Script>


</body>
</html>

2016年5月20日 星期五

圓餅圖 隨機選

<html>
  <head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

    <script type="text/javascript">


      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
      var a,b,c;
      a=0;
      b=0;
      c=0;
      function add() {
   
 var radio1 = document.getElementsByName("v1");
 var radio2 = document.getElementsByName("v2");
 var radio3 = document.getElementsByName("v3");



   for(var i=0;i<radio1.length;i++)
   {
     if(radio1.item(i).checked==true)
     {
i = i+1
     alert(i);
if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }


   
     document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
break;
     }
   }
 for(var i=0;i<radio2.length;i++)
   {
     if(radio2.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }


      document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;

break;
     }
   }

 for(var i=0;i<radio3.length;i++)
   {
     if(radio3.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }


      document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;

break;
     }
   }




      drawChart();
      }

      function drawChart() {
     
       var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     a],
          ['Eat',      b],
          ['Commute',  c],
        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }
    </script>
  </head>
  <body>

<h1>你選了什麼?</h1>
<input name="v1" type="radio" value="300年">300年        
<input name="v1" type="radio" value="400年">400年          
<input name="v1" type="radio" value="1000年">1000年
<br>
<h1>你選了什麼?</h1>
<input name="v2" type="radio" value="300年">300年        
<input name="v2" type="radio" value="400年">400年          
<input name="v2" type="radio" value="1000年">1000年
<br>
<h1>你選了什麼?</h1>
<input name="v3" type="radio" value="300年">300年        
<input name="v3" type="radio" value="400年">400年          
<input name="v3" type="radio" value="1000年">1000年
<br>


c1:
 <input type="text" name="FirstName" id="c1" <br><br/>

 c2:
 <input type="text" name="address" id="c2" <br></br>

 c3:
 <input type="text" name="address" id="c3" <br></br>


 <input type="button" value="submit" onclick="add()"/>
    <div id="piechart" style="width: 900px; height: 500px;"></div>

  </body>
</html>



<html>
  <head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

    <script type="text/javascript">


      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
      var a,b,c,d;
      a=0;
      b=0;
      c=0;
      d=0;
      function add() {
   
 var radio1 = document.getElementsByName("v1");
 var radio2 = document.getElementsByName("v2");
 var radio3 = document.getElementsByName("v3");
 var radio4= document.getElementsByName("v4");


   for(var i=0;i<radio1.length;i++)
   {
     if(radio1.item(i).checked==true)
     {
i = i+1
     alert(i);
if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



   
document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;
break;
     }
   }


 for(var i=0;i<radio2.length;i++)
   {
     if(radio2.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;

break;
     }
   }


 for(var i=0;i<radio3.length;i++)
   {
     if(radio3.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;

break;
     }
   }


  for(var i=0;i<radio4.length;i++)
   {
     if(radio4.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;

break;
     }
   }




      drawChart();
      }

      function drawChart() {
     
       var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     a],
          ['Eat',      b],
          ['Commute',  c],
          ['sleep',     d],

        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }



    </script>
  </head>
  <body>

<h1>你選了什麼?</h1>
<input name="v1" type="radio" value="300年">300年        
<input name="v1" type="radio" value="400年">400年          
<input name="v1" type="radio" value="1000年">1000年
<input name="v1" type="radio" value="1200年">1200年
<br>
<h1>你選了什麼?</h1>
<input name="v2" type="radio" value="300年">300年        
<input name="v2" type="radio" value="400年">400年          
<input name="v2" type="radio" value="1000年">1000年
<input name="v2" type="radio" value="1200年">1200年
<br>
<h1>你選了什麼?</h1>
<input name="v3" type="radio" value="300年">300年        
<input name="v3" type="radio" value="400年">400年          
<input name="v3" type="radio" value="1000年">1000年
<input name="v3" type="radio" value="1200年">1200年
<br>
<h1>你選了什麼?</h1>
<input name="v4" type="radio" value="300年">300年        
<input name="v4" type="radio" value="400年">400年          
<input name="v4" type="radio" value="1000年">1000年
<input name="v4" type="radio" value="1200年">1200年
<br>



c1:
 <input type="text" name="FirstName" id="c1" <br><br/>

 c2:
 <input type="text" name="address" id="c2" <br></br>

 c3:
 <input type="text" name="address" id="c3" <br></br>

 c4:
 <input type="text" name="address" id="c4" <br></br>



 <input type="button" value="submit" onclick="add()"/>
    <div id="piechart" style="width: 900px; height: 500px;"></div>

  </body>
</html>




隨機


<html>
  <head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

    <script type="text/javascript">


      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
      var a,b,c,d;
      a=0;
      b=0;
      c=0;
      d=0;
 var n1=n2=n3=n4=0;
 function rondom() {
var maxNum = 4;  
var minNum = 0;  
 n1 = Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;  
 n2= Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;  
 n3 = Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;  
 n4= Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum;  

      drawChart();
}
      function add() {
      
 var radio1 = document.getElementsByName("v1");
 var radio2 = document.getElementsByName("v2");
 var radio3 = document.getElementsByName("v3");
 var radio4= document.getElementsByName("v4");


   for(var i=0;i<radio1.length;i++)
   {
     if(radio1.item(i).checked==true)
     {
i = i+1
     alert(i);
if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



      
document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;
break;
     }
   }


 for(var i=0;i<radio2.length;i++)
   {
     if(radio2.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;

break;
     }
   }


 for(var i=0;i<radio3.length;i++)
   {
     if(radio3.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;

break;
     }
   }


  for(var i=0;i<radio4.length;i++)
   {
     if(radio4.item(i).checked==true)
     {
i = i+1
     alert(i);
     if (i==1)
  {
a=a+1;
  }
if (i==2)
  {
b=b+1;
  }
if (i==3)
  {
c=c+1;
  }
if (i==4)
  {
d=d+1;
  }



document.getElementById('c1').value=a;
document.getElementById('c2').value=b;
document.getElementById('c3').value=c;
document.getElementById('c4').value=d;

break;
     }
   }




      drawChart();
      }

      function drawChart() {
       
       var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     n1],
          ['Eat',      n2],
          ['Commute',  n3],
          ['sleep',     n4],

        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }



    </script>
  </head>
  <body>

<h1>你選了什麼?</h1>
<input name="v1" type="radio" value="300年">300年          
<input name="v1" type="radio" value="400年">400年             
<input name="v1" type="radio" value="1000年">1000年
<input name="v1" type="radio" value="1200年">1200年
<br>
<h1>你選了什麼?</h1>
<input name="v2" type="radio" value="300年">300年          
<input name="v2" type="radio" value="400年">400年             
<input name="v2" type="radio" value="1000年">1000年
<input name="v2" type="radio" value="1200年">1200年
<br>
<h1>你選了什麼?</h1>
<input name="v3" type="radio" value="300年">300年          
<input name="v3" type="radio" value="400年">400年             
<input name="v3" type="radio" value="1000年">1000年
<input name="v3" type="radio" value="1200年">1200年
<br>
<h1>你選了什麼?</h1>
<input name="v4" type="radio" value="300年">300年          
<input name="v4" type="radio" value="400年">400年             
<input name="v4" type="radio" value="1000年">1000年
<input name="v4" type="radio" value="1200年">1200年
<br>



c1: 
 <input type="text" name="FirstName" id="c1" <br><br/> 

 c2:
 <input type="text" name="address" id="c2" <br></br>

 c3:
 <input type="text" name="address" id="c3" <br></br>

 c4:
 <input type="text" name="address" id="c4" <br></br>



 <input type="button" value="submit" onclick="add()"/>
 <input type="button" value="123" onclick="rondom()"/>

    <div id="piechart" style="width: 900px; height: 500px;"></div>

  </body>
</html>




2016年5月13日 星期五

圓餅圖

圓餅圖

https://google-developers.appspot.com/chart/interactive/docs/gallery/piechart#overview

<html>
  <head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">
      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
      function drawChart() {

        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     11],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    7]
        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
    <div id="piechart" style="width: 900px; height: 500px;"></div>
  </body>
</html>

改成2

<html>
  <head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">
      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
      function drawChart() {

        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     2],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    2]
        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
    <div id="piechart" style="width: 900px; height: 500px;"></div>
  </body>
</html>





改 drawChart() 


<html>
  <head>
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">
function add() {
            var a ;
            var b ;
            alert('result value');
            }

      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
      function drawChart() {
      var a ;
      a=3;

        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     a],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    2]
        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
    <div id="piechart" style="width: 900px; height: 500px;"></div>
<input type="button" value="submit" onclick="function drawChart()"/>
  </body>
</html>


<html>
  <head>

    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">
      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);
   var a;
  function check() {
            var radio1=document.getElementsByName("v1");
 for(var i=0;i<radio1.length;i++)
   {
         if(radio1.item(i).checked==true)
             {
     flag1=1+i;
     alert(radio1.item(i).value);
                  break;
       }
   }
}
 function add() {
            var a ;
            var b ;
            alert('result value');
}

                 function drawChart() {
 var a ;
 a=3;
        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     a],
          ['Eat',      2],
          ['Commute',  2],
        ]);

        var options = {
          title: 'My Daily Activities'
        };

        var chart = new google.visualization.PieChart(document.getElementById('piechart'));

        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
<h1>1、你選了什麼?</h1>
<input name="v1" type="radio" value="300年">300年        
<input name="v1" type="radio" value="400年">400年          
<input name="v1" type="radio" value="1000年">1000年
<h1>2、你選了什麼?</h1>
<input name="v2" type="radio" value="300年">300年        
<input name="v2" type="radio" value="400年">400年          
<input name="v2" type="radio" value="1000年">1000年
<br>
 <input type="button" value="submit" onclick="check() "/>

    <div id="piechart" style="width: 900px; height: 500px;"></div>
 
  </body>
</html>

2016年5月6日 星期五

選擇

http://www.kangting.tw/2012/07/htmljavascriptcss.html

<!DOCTYPE html >
<html >
<head>
    <title>加法運算器</title>
</head>
<body>
    <input type="text" />+<input type="text" />
    <button></button>
    <output ></output>
</body>
</html>

貼在</head>下面

<script>
function add() {
            var a = parseInt(document.getElementById('a').value);
            var b= parseInt(document.getElementById('b').value);
            document.getElementById('result').value = a+b ;
            }
</script>


<body>下面改
<input id="a"  type="text" />+<input id="b"  type="text" />
    <button onclick="add()">=</button>
    <output id="result" ></output>




<!DOCTYPE html >
<html >
<head>
    <title>
Form
</title>
    <script>
        function check1() {
            var radio1=document.getElementsByName("v1");
   for(var i=0;i<radio1.length;i++)
   {
         if(radio1.item(i).checked==true)
             {
     flag1=1;
     alert(radio1.item(i).value);
                  break;
       }
   }
}
    </script>
</head>
<body>
<form action="post.php" method="post"  name="add" enctype="multipart/form-data" onSubmit="return check();" >
<h1>1、ssss?</h1>
<input name="v1" type="radio" value="300年">300年             
<input name="v1" type="radio" value="400年">400年               
<input name="v1" type="radio" value="1000年">1000年
<input type="button" value="submit" onclick="check1()"/>
</form>
</body>
</html>


<script>
        function check() {
            var radio1=document.getElementsByName("v1");
            var radio2=document.getElementsByName("v2");
   for(var i=0;i<radio1.length;i++)
   {
         if(radio1.item(i).checked==true)
             {
     flag1=1+i;
     //alert(radio1.item(i).value);
                  break;
       }
   }
 for(var i=0;i<radio2.length;i++)
   {
         if(radio2.item(i).checked==true)
             {
     flag2=1+i;
     //alert(radio2.item(i).value);
                  break;
       }
   }
document.write(flag1,flag2);
}
    </script>
</head>
<body>
<form action="post.php" method="post"  name="add" enctype="multipart/form-data" onSubmit="return check();" >
<h1>1、ssss?</h1>
<input name="v1" type="radio" value="300年">300年             
<input name="v1" type="radio" value="400年">400年               
<input name="v1" type="radio" value="1000年">1000年

<h1>2、ssss?</h1>
<input name="v2" type="radio" value="300年">300年             
<input name="v2" type="radio" value="400年">400年               
<input name="v2" type="radio" value="1000年">1000年
<input type="button" value="submit" onclick="check()"/>
</form>
</body>
</html>


<!DOCTYPE html >
<html >
<head>
    <title>
Form
</title>
    <script>
        function check() {
            var radio1=document.getElementsByName("v1");
            var radio2=document.getElementsByName("v2");
            var radio3=document.getElementsByName("v3");
            var radio4=document.getElementsByName("v4");
            var radio5=document.getElementsByName("v5");
            var radio6=document.getElementsByName("v6");
            var radio7=document.getElementsByName("v7");
            var radio8=document.getElementsByName("v8");
            var radio9=document.getElementsByName("v9");
            var radio10=document.getElementsByName("v10");
   for(var i=0;i<radio1.length;i++)
   {
         if(radio1.item(i).checked==true)
             {
     flag1=1+i;
     //alert(radio1.item(i).value);
                  break;
       }
   }
 for(var i=0;i<radio2.length;i++)
   {
         if(radio2.item(i).checked==true)
             {
     flag2=1+i;
     //alert(radio2.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio3.length;i++)
   {
         if(radio3.item(i).checked==true)
             {
     flag3=1+i;
     //alert(radio1.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio4.length;i++)
   {
         if(radio4.item(i).checked==true)
             {
     flag4=1+i;
     //alert(radio1.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio5.length;i++)
   {
         if(radio5.item(i).checked==true)
             {
     flag5=1+i;
     //alert(radio5.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio6.length;i++)
   {
         if(radio6.item(i).checked==true)
             {
     flag6=1+i;
     //alert(radio6.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio7.length;i++)
   {
         if(radio7.item(i).checked==true)
             {
     flag7=1+i;
     //alert(radio7.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio8.length;i++)
   {
         if(radio8.item(i).checked==true)
             {
     flag8=1+i;
     //alert(radio8.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio9.length;i++)
   {
         if(radio9.item(i).checked==true)
             {
     flag9=1+i;
     //alert(radio9.item(i).value);
                  break;
       }
   }
  for(var i=0;i<radio10.length;i++)
   {
         if(radio10.item(i).checked==true)
             {
     flag10=1+i;
     //alert(radio10.item(i).value);
                  break;
       }
   }
document.write(flag1,flag2,flag3,flag4,flag5,flag6,flag7,flag8,flag9,flag10);
document.write("<br>");
document.write(flag1+flag2+flag3+flag4+flag5+flag6+flag7+flag8+flag9+flag10);
}
    </script>
</head>
<body>
<form action="post.php" method="post"  name="add" enctype="multipart/form-data" onSubmit="return check();" >
<h1>1、ssss?</h1>
<input name="v1" type="radio" value="300年">300年             
<input name="v1" type="radio" value="400年">400年               
<input name="v1" type="radio" value="1000年">1000年

<h1>2、ssss?</h1>
<input name="v2" type="radio" value="300年">300年             
<input name="v2" type="radio" value="400年">400年               
<input name="v2" type="radio" value="1000年">1000年

<h1>3、ssss?</h1>
<input name="v3" type="radio" value="300年">300年             
<input name="v3" type="radio" value="400年">400年               
<input name="v3" type="radio" value="1000年">1000年

<h1>4、ssss?</h1>
<input name="v4" type="radio" value="300年">300年             
<input name="v4" type="radio" value="400年">400年               
<input name="v4" type="radio" value="1000年">1000年

<h1>5、ssss?</h1>
<input name="v5" type="radio" value="300年">300年             
<input name="v5" type="radio" value="400年">400年               
<input name="v5" type="radio" value="1000年">1000年

<h1>6、ssss?</h1>
<input name="v6" type="radio" value="300年">300年             
<input name="v6" type="radio" value="400年">400年               
<input name="v6" type="radio" value="1000年">1000年

<h1>7、ssss?</h1>
<input name="v7" type="radio" value="300年">300年             
<input name="v7" type="radio" value="400年">400年               
<input name="v7" type="radio" value="1000年">1000年

<h1>8、ssss?</h1>
<input name="v8" type="radio" value="300年">300年             
<input name="v8" type="radio" value="400年">400年               
<input name="v8" type="radio" value="1000年">1000年

<h1>9、ssss?</h1>
<input name="v9" type="radio" value="300年">300年             
<input name="v9" type="radio" value="400年">400年               
<input name="v9" type="radio" value="1000年">1000年

<h1>10、ssss?</h1>
<input name="v10" type="radio" value="300年">300年             
<input name="v10" type="radio" value="400年">400年               
<input name="v10" type="radio" value="1000年">1000年
<input type="button" value="submit" onclick="check()"/>
</form>
</body>
</html>