
// 全角⇒半角変換
function toChar_8(s)
{ return s.replace(/[A-Za-z0-9]/g, function(s)
{ return String.fromCharCode(s.charCodeAt(0) - 0xFEE0);
});
}
|
hoge.addEventListener('touchstart', function()
{ var audio = new Audio ('osrstart.mp3');
audio.play();
});
|
<html> <head><meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body> <img src="bijin16.jpg"><br> 4*4=16枚の Sprite が並んでいる元の画像です。<br> 16枚の Sprite を順に切り替えてアニメーションを行います。<br> </body> </html> |
<html> <head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> </head> <body bgcolor="#faf8e0"> <img src="bijin16.jpg"><br> 4*4=16枚の Sprite が並んでいる元の画像です。<br> 16枚の Sprite を順に切り替えてアニメーションを行います。<br> </body> </html> |
<html> <center> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <link rel="stylesheet" href="sumaho.css" type="text/css"> </head> <body> <img src="bijin16.jpg"><br> 4*4=16枚の Sprite が並んでいる元の画像です。<br> 16枚の Sprite を順に切り替えてアニメーションを行います。<br> </body> </center> </html> |
@charset "utf-8";
/* 全般的なスタイル */
* {
margin:0; padding:0; /*マージン・パディングをリセット*/
color:#333333; /*文字色*/
}
body {
background-color:#faf8e0; /*ページ全体の背景色*/
margin:0px 10px 10px 10px;
-webkit-text-size-adjust: 100%!important ;
}
h1 {
margin: 10px 0 10px 0; /* 上右下左 */
font-size: 20p; /* 文字サイズ */
color: #333333; /* 文字色を#333333 */
padding: 5px 0px; /* 上下5ピクセル、左右0px */
}
h2 {
margin: 8px 0 8px 0; /* 上右下左 */
font-size: 18p; /* 文字サイズ */
color: #333333; /* 文字色を#333333 */
padding: 5px 0px; /* 上下5ピクセル、左右0px */
}
h3 {
margin: 6px 0 6px 0; /* 上右下左 */
font-size: 16p; /* 文字サイズ */
color: #333333; /* 文字色を#333333 */
padding: 5px 0px; /* 上下5ピクセル、左右0px */
}
ul { margin:0px 10px 0px 16px; }
ol { margin:0px 10px 0px 16px; }
li { margin:20px 10px 20px 10px; }
p { margin:40px 0px 40px 0px; }
hr { height:1px; border:solid 1px #cccccc;
margin:10px 1px 10px 0px;
}
/* 範囲設定 */
div.ff
{ text-align:left;
background-color:#ffffff; /*内容全体の背景色*/
}
div.e0
{ text-align:left;
background-color:#e0e0e0;
}
span.red
{ color:#e02020; }
span.s1
{ font-size:20pt; }
span.s2
{ font-size:18pt; }
span.s3
{ font-size:16pt; }
img.s1
{ max-width:100%;
height:auto;
}
img.s2
{ max-width:75%;
height:auto;
}
img.s3
{ max-width:50%;
height:auto;
}
a:link {/*未訪問のリンク*/
color:0000e0;
font-style:normal;
text-decoration:underline;
}
a:visited {/*訪問後のリンク*/
color:#934C7B;
text-decoration:underline;
}
a:hover {/*マウスをのせたとき*/
color:#f000a0;
font-style:normal;
text-decoration:underline;
}
a:active {/*クリック中*/
text-decoration:none;
}
|