日期:2014-05-16 浏览次数:20379 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="jquery.animate-shadow.js"></script>
<script type="text/javascript">
$(function()
{
$('#box1').animate({boxShadow: '0 0 30px #44f'});
}
);
</script>
<body >
<div id="box1" style="width:200px; height:200px; background:#000;" class="dsa" onmouseover="$('.dsa').stop().animate({boxShadow: '0 0 50px'}, 'fast')" onmouseout="$('.dsa').stop().animate({boxShadow: '0 0 0'}, 'fast')"></div>
</body>
</html>