WEB、始めました

半年間WEB制作の学校に通います。その記録。

2016-03-14から1日間の記事一覧

35日目 JavaScript演習

入力された数値の偶数・奇数を判別 <html lang="ja"> <head> <meta charset="utf-8"> <title>演習・偶数奇数判別</title> <script> function guki() { var num; var htmlstr=''; num = prompt('半角数字を入力してください', 2 ); num = parseInt( num); if( num%2===0 ) { htmlstr = '入力された数字' + num + 'は偶数です。' d</meta></head></html>…

34日目 DOM

配列を使った掛け算 http://tototo.webcrow.jp/script/0310/array03.html <html lang="ja"> <head> <meta charset="utf-8"> <title>配列を使った掛け算</title> <style> table { border: 1px solid #666; border-collapse: collapse; } th,td { border: 1px solid #666; width: 100px; padding: 5px; text-align: center; } t…</meta></head></html>

33日目 オブジェクト new Date new Array Math

何年何月何日何曜日 http://tototo.webcrow.jp/script/0309/youbi.html <html lang="ja"> <head> <meta charset="utf-8"> <title>何年何月何日何曜日</title> </head> <body> <script> var n= new Date(); var f= n.getFullYear(); var m= n.getMonth()+1; var d= n.getDate(); var y= n.getDay(); var w=[ '日', '月', '火', '水…</body></html>

32日目 配列 連想配列 オブジェクト new Date

配列http://tototo.webcrow.jp/script/0308/hairetu_array.html var num=[ 10, 100, 1000, 10000]; console.log(num[0]); var fluits=[ 'りんご','もも','みかん','めろん','ばなな']; console.log(fluits[3]); var number=[ 10, 20, 30]; number[1]= 50; co…

31日目 サムネイル while文 for文 

サムネイル 画像置換html <html lang="ja"> <head> <meta charset="utf-8"> <title>画像置換</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="imgbox"> <h1>癒される柴犬</h1> <div class="thumbnail"> </div></div></body></html>