2012-06-22から1日間の記事一覧

js基礎課題06(-1)

<html> <head> <meta charset="utf-8"> <title>js基礎課題06(-1)</title> </head> <body> <script> var five=5; var one=1 alert(five-one); </script> </body> </html>

js基礎課題06(+1)

<html> <head> <meta charset="utf-8"> <title>js基礎課題06(+1)</title> </head> <body> <script> var five=5; var one=1 alert(five+one); </script> </body> </html>

ja基礎課題05

<html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p>日本で一番高い山は?</p> <input type="button" value="答えを見る" onClick="alert('富士山')"> </body> </html>

js基礎課題(3-3)

<html> <head> <meta charset="utf-8"> <title></title> <script> function word(){alert("マウスが乗った時に・・・")}; </script> </head> <body> <p> <input type="button" value="button" onMouseOut="word()";> </p> </body> </html>

js基礎課題(3-2)

<html> <head> <meta charset="utf-8"> <title>js基礎課題(3-1)</title><script> function word() {alert("マウスがクリックされた時・・・")}; </script> </head> <p> <input type="button" value="button" onClick="word()"; </p> </p> </body> </html>

js基礎課題(3-1)

<html> <head> <meta charset="utf-8"> <title>js基礎課題(3-1)</title><script> function word() {alert("ページが表示された直後に・・・")}; </script> </head> <body onload="word()"> </body> </html>

js(配列)

<html> <head> <meta charset="utf-8"> <title>配列練習(1)</title> </head> <body> <script> var msg =['大大大大大吉','大大大大吉','大大大吉','大大吉','大吉']; var r=Math.floor(Math.random()*msg.length); document.write(msg[r]); </script> </body> </html> Math.floor=引数の最大値かつ小数点以下。 lengthこの場合は5

6/21授業(メモ)

scrllolable nivoslider wowslider horizontalslider