2015年6月29日 星期一
mousemove
This example uses the addEventListener() method to attach a "mousemove" event to a div element.
Mouse over the rectangle above, and get the coordinates of your mouse pointer.
mouseDown
This example uses the addEventListener() method to attach a "mousedown" and "mouseup" event to a p element.
Click me.
改變本文文字顏色
Click the text! The mouseDown() function is triggered when the mouse button is pressed down over this paragraph, and sets the color of the text to red. The mouseUp() function is triggered when the mouse button is released, and sets the color of the text to green.
2015年6月27日 星期六
2015年6月26日 星期五
2015年6月20日 星期六
2015年6月19日 星期五
2015年6月18日 星期四
2015年6月8日 星期一
添加更多的樣式
| First Name | Last Name | Points |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
| First Name | Last Name | Points |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
不同的樣式不同的表
| First Name | Last Name | Points |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
| First Name | Last Name | Points |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
2015年6月7日 星期日
表單多選
Before you click "Select multiple", you cannot select more than one option (by holding down the Shift or Ctrl key).
After you have clicked "Select multiple", you can.
2015年6月6日 星期六
輸入(表格)
A demonstration of how to access a Number field
Click the button to get the number of the number field.Note: input elements with type="number" are not supported in IE 9 and earlier versions.
no1
|
no2
|
no3
|
輸入編號對象
A demonstration of how to access a Number field
Click the button to get the number of the number field.Note: input elements with type="number" are not supported in IE 9 and earlier versions.
person.fullName
Creating and using an object method.
An object method is a function definition, stored as a property value.
輸入 input
Enter a number and click OK:
If the number is less than 100 or greater than 300, an error message will be displayed.
如果該數小於100或大於300,則顯示錯誤消息
Enter a number and click OK:
If the number is less than 100 or greater than 300, an error message will be displayed.
寫入瀏覽器的控制台,使用的console.log_
My First Web Page
My first paragraph.
Activate debugging in your browser (Chrome, IE, Firefox) with F12, and select "Console" in the debugger menu.

