diff --git a/getElementById.html b/getElementById.html new file mode 100644 index 0000000..195bb62 --- /dev/null +++ b/getElementById.html @@ -0,0 +1,21 @@ + + + + + +

click

+

dblclick

+

contextmenu

+

mousedown

+

mouseenter

+

mouseleave

+

mousemove

+

mouseout

+

mouseover

+

mouseup

+

keypress

+

keydown

+

keyup

+ + + \ No newline at end of file diff --git a/getElementById.js b/getElementById.js new file mode 100644 index 0000000..de28614 --- /dev/null +++ b/getElementById.js @@ -0,0 +1,4 @@ +function change(){ + var myp = document.getElementById("name"); + myp.innerHTML = "正解!"; + } \ No newline at end of file diff --git a/hello.js b/hello.js deleted file mode 100644 index a64b27c..0000000 --- a/hello.js +++ /dev/null @@ -1,4 +0,0 @@ -function changeColor(newColor) { - var elem = document.getElementById('para'); - elem.style.color = newColor; -} \ No newline at end of file diff --git a/rensyu.html b/rensyu.html deleted file mode 100644 index 7a2f1e9..0000000 --- a/rensyu.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - getElementById example - - -

Some text here

- - - - \ No newline at end of file