2014年4月28日 星期一

lab20

CGI:意思就是傳遞動作的一個閘道
search:

lab19

搜尋:

Lab18

2014年4月14日 星期一

Lab17

第1張



第2張



第3張

Lab16

程式碼

<<!DOCTYPE html> <html> <head> <title>lab16</title> <script> function mOver(obj){ obj.setAttribute("src","http://flipermag.com/wp-content/uploads/2012/12/Jordan-logo.jpg"); } function mOut(obj){ obj.setAttribute("src","http://pingshoops.com/wp-content/uploads/2013/01/Michael-Jordan-wallpaper1.jpg"); } </script> </head> <body> <img border="0" src="http://imgur.com/kP9t1au.jpg" width="500" height="500" onmouseover="mOver(this)" onmouseout="mOut(this)"> </body> </html>

Lab15

Lab15



<html> <body> <button onclick="buildTable()">Try it</button> <script> function buildTable(){ docBody = document.getElementsByTagName("body").item(0) myTable = document.createElement("TABLE") myTable.id ="TableOne" myTable.border = 1 myTableBody = document.createElement("TBODY") for (i = 1; i <=9; i++){ row = document.createElement("TR") for (j = 1; j <=9; j++){ cell = document.createElement("TD") cell.setAttribute("WIDTH","50") cell.setAttribute("HEIGHT","50") textVal = i + "*" + j+"="+i*j textNode = document.createTextNode(textVal) cell.appendChild(textNode) row.appendChild(cell) } myTableBody.appendChild(row) } myTable.appendChild(myTableBody) docBody.appendChild(myTable) } </script> </head> <body> </body> </html>




2014年4月7日 星期一

Lab14







程式碼

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<form>
<input type="button"  onclick="build()">
<title>lab14</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>
<br>
</body>
</html>