2014年4月14日 星期一

Lab 17 JavaScript



1


2


3




Lab 17 JavaScript



1


2


3




Lab 16 Change an image by moving the mouse



lab16







Lab 16 Change an image by moving the mouse



lab16







Lab 15 九九乘法表

Lab 15 九九乘法表

2014年4月7日 星期一

Lab 13 Regular expression in action II







Lab 13 Regular expression in action II







Lab 14 Create Image using DOM


<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>lab26</title>
<script>
function build()
{
myImg = document.createElement("IMG")
myImg.setAttribute("id","imageOne")
myImg.setAttribute("src","http://airsnarf.shmoo.com/airsnarf.jpg")
docBody = document.getElementsByTagName("body").item(0)
docBody.appendChild(myImg)
window.onload=build
}

</script>
</head>

</body>

<button onclick="build()">Try it</button>
</body>
</html>

Lab 14 Create Image using DOM


<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>lab26</title>
<script>
function build()
{
myImg = document.createElement("IMG")
myImg.setAttribute("id","imageOne")
myImg.setAttribute("src","http://airsnarf.shmoo.com/airsnarf.jpg")
docBody = document.getElementsByTagName("body").item(0)
docBody.appendChild(myImg)
window.onload=build
}

</script>
</head>

</body>

<button onclick="build()">Try it</button>
</body>
</html>