$.getJSON("/data/sport.json",function(data)
2014-12-22
animate({
left: "+=100px"
}, 3000, function () {
$(this).animate({
height: '+=30px',
width: '+=30px'
}, 3000, function () {
left: "+=100px"
}, 3000, function () {
$(this).animate({
height: '+=30px',
width: '+=30px'
}, 3000, function () {
2014-12-22
$("span").animate({
width: "80px",
height: "80px"
},
width: "80px",
height: "80px"
},
2014-12-22
$(".red").fadeTo(3000,0.2)
break;
case 1:
$(".orange").fadeTo(3000,0.4)
break;
case 2:
$(".blue").fadeTo(3000,0.6)
break;
case 1:
$(".orange").fadeTo(3000,0.4)
break;
case 2:
$(".blue").fadeTo(3000,0.6)
2014-12-22
$("ul").slideToggle(3000,function() {
$spn.html() == "向下滑" ? $spn.html("向上滑") : $spn.html("向下滑");
$spn.html() == "向下滑" ? $spn.html("向上滑") : $spn.html("向下滑");
2014-12-22
$("ul").slideUp(3000,function() {
$("#hidval").val(1);
})
} else {
$("ul").slideDown(3000,function(){
$("#hidval").val(0);
$("#hidval").val(1);
})
} else {
$("ul").slideDown(3000,function(){
$("#hidval").val(0);
2014-12-22
var $spn = $("#spnTip");
$("h4").bind("click", function () {
$("ul").toggle(3000,function(){
$spn.html() == "隐藏" ? $spn.html("显示") : $spn.html("隐藏");
})
});
$("h4").bind("click", function () {
$("ul").toggle(3000,function(){
$spn.html() == "隐藏" ? $spn.html("显示") : $spn.html("隐藏");
})
});
2014-12-22
$("ul").show(3000,function(){
$("#hidval").val(1);
})
} else {
$("ul").hide(3000,function(){
$("#hidval").val(0);
$("#hidval").val(1);
})
} else {
$("ul").hide(3000,function(){
$("#hidval").val(0);
2014-12-22
if ($("#hidval").val() == 0) {
$("ul").show()
$("#hidval").val(1);
} else {
$("ul").hide()
$("#hidval").val(0);
$("ul").show()
$("#hidval").val(1);
} else {
$("ul").hide()
$("#hidval").val(0);
2014-12-22