日期:2014-05-17 浏览次数:20894 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
div
{
width: 100px;
height: 200px;
}
.div1
{
background-color: Red;
}
.div2
{
background-color: blue;
}
</style>
<script type="text/javascript">
var startAnimal = function () {
try {
var _slideFun = [
function () { $(".div1").fadeOut(2000, cb); },
function () { $(".div1").fadeIn(2000, cb); },
function () { $(".div2").slideUp(2000, cb); },
function () { $(".div2").slideDown(2000, cb); }
];
$('body').queue('_slideFun', _slideFun);
var cb = function () {
$('body').dequeue('_slideFun');
};
cb();
}
catch (e) {
&nb