第一周

下載程式碼,修改程式碼,存成html,放入blog

第二周


修改程式碼
<input type="button" value="2020通貨走勢" onclick="draw()"/>

<label>紅色</label><input type="radio" name="color" >
<label>綠色</label><input type="radio" name="color" >
<label>藍色</label><input type="radio" name="color" ><br>

第三周

<form><b>選擇顏色:
<input id="linecolor" type="checkbox">紅色
<input onclick="draw()" type="button" value="2020年每天通貨走勢" />
</form>
if ( document.getElementById('linecolor').checked )
ctx.fillStyle="red";

十進位

十六進位

二進位

decimal

hexadecimal

binary

0

0

0

1

1

1

2

2

10

3

3

11

8

8

1000

9

9

1001

10

A

1010

11

B

1011

12

C

1100

13

D

1101

14

E

1110

15

F

1111

16

10

10000

17

11

10001

255

FF

11111111



 第四周

<form><b>
選擇速度: <select id="selection">
<option value="10">10</option>
<option value="20">20</option>
<option value="40" selected>40</option>
<option value="100">100</option>
<option value="100">500</option>
</select>
選擇顏色:
<input id="linecolor" type="checkbox">紅色 <!--核取方塊 linecolor -->
<input onclick="draw()" type="button" value="2020年每天通貨走勢" />
</form>
var speedvalue;
var speed = document.getElementById("selection");
speedvalue = speed.options[speed.options.selectedIndex].text;
//下拉式選單.選擇[下拉式選單.選擇.被選擇的索引].文
//命名為sppe.options[命名為sppe.options.selectedIndex]

 <h1>第七周網頁指令與vba命令比較</h1>

網頁指令vba
輸入資料:
輸入資料:<input type="text" id="a">
輸入數字:
輸入數字:<input id="b" type="number" />
豬<input type="radio" />狗<input type="radio" />貓<input type="radio" />

留言

這個網誌中的熱門文章

詹瑋哲python math random

程式交易(演算法交易)