�yHTML�z
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>jQuery Sample</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<h1>jQuery�T���v��</h1>
<p>�C�x���g�̏���</p>
<div>[1] �������N���b�N</div>
<div>[2] �������N���b�N</div>
<div>[3] �������N���b�N</div>
</body>
</html>
�yCSS�z
h1 {
font-size:14pt;
border-bottom:1px dotted gray;
width:320px;
}
�yJavaScript�z
$(function(){
$("div").mouseover(function(){
this.style.backgroundColor = "yellow";
});
$("div").mouseout(function(){
this.style.backgroundColor = "white";
});
});
�yHTML�z
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>jQuery Sample</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<h1>jQuery�T���v��</h1>
<p>�C�x���g�̏���</p>
<div>[1] �������N���b�N</div>
<div>[2] �������N���b�N</div>
<div>[3] �������N���b�N</div>
</body>
</html>
�yCSS�z
h1 {
font-size:14pt;
border-bottom:1px dotted gray;
width:320px;
}
�yJavaScript�z
$(function(){
$("div").hover(
function(){
this.style.backgroundColor = "yellow";
},
function(){
this.style.backgroundColor = "white";
}
);
});