<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("div").click(function () {
var color = $(this).css("background-color");
alert(color);
});
});
</script>
</head>
<body>
<body>
<div style="background-color:blue;">asdf</div>
</body>
</html>
|