最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

返回值:Array/jQueryqueue(element,[queueName])

概述

顯示或操作在匹配元素上執(zhí)行的函數(shù)隊(duì)列

參數(shù)

element,[queueName]Element,StringV1.3

element:檢查附加列隊(duì)的DOM元素

queueName:字符串值,包含序列的名稱(chēng)。默認(rèn)是 fx, 標(biāo)準(zhǔn)的效果序列。

element,queueName,newQueue Element,String,Array V1.3

element:檢查附加列隊(duì)的DOM元素

queueName:字符串值,包含序列的名稱(chēng)。默認(rèn)是 fx, 標(biāo)準(zhǔn)的效果序列。

newQueue:替換當(dāng)前函數(shù)列隊(duì)內(nèi)容的數(shù)組

element,queueName,callback()Element,StringV1.3

element:檢查附加列隊(duì)的DOM元素

queueName:字符串值,包含序列的名稱(chēng)。默認(rèn)是 fx, 標(biāo)準(zhǔn)的效果序列。

callback():要添加進(jìn)隊(duì)列的函數(shù)

示例

描述:

顯示隊(duì)列長(zhǎng)度

HTML 代碼:
<style>
  div { margin:3px; width:40px; height:40px;
        position:absolute; left:0px; top:30px; 
        background:green; display:none; }
  div.newcolor { background:blue; }
  span { color:red; }
</style>
<button id="show">Show Length of Queue</button>
<span></span>
<div></div>
jQuery 代碼:
$("#show").click(function () {
      var n = $("div").queue("fx");
      $("span").text("Queue length is: " + n.length);
});
function runIt() {
      $("div").show("slow");
      $("div").animate({left:'+=200'},2000);
      $("div").slideToggle(1000);
      $("div").slideToggle("fast");
      $("div").animate({left:'-=200'},1500);
      $("div").hide("slow");
      $("div").show(1200);
      $("div").slideUp("normal", runIt);
}
runIt();

描述:

通過(guò)設(shè)定隊(duì)列數(shù)組來(lái)刪除動(dòng)畫(huà)隊(duì)列

HTML 代碼:
<style>
  div { margin:3px; width:40px; height:40px;
        position:absolute; left:0px; top:30px; 
        background:green; display:none; }
  div.newcolor { background:blue; }
  </style>

  <button id="start">Start</button>
  <button id="stop">Stop</button>
  <div></div>
jQuery 代碼:
$("#start").click(function () {
      $("div").show("slow");
      $("div").animate({left:'+=200'},5000);
      $("div").queue(function () {
          $(this).addClass("newcolor");
          $(this).dequeue();
      });
      $("div").animate({left:'-=200'},1500);
      $("div").queue(function () {
          $(this).removeClass("newcolor");
          $(this).dequeue();
      });
      $("div").slideUp();
  });
  $("#stop").click(function () {
      $("div").queue("fx", []);
      $("div").stop();
  });

描述:

插入一個(gè)自定義函數(shù) 如果函數(shù)執(zhí)行后要繼續(xù)隊(duì)列,則執(zhí)行 jQuery(this).dequeue();

HTML 代碼:
<style>
  div { margin:3px; width:40px; height:40px;
        position:absolute; left:0px; top:30px; 
        background:green; display:none; }
  div.newcolor { background:blue; }
  </style>
  Click here...
  <div></div>
jQuery 代碼:
$(document.body).click(function () {
      $("div").show("slow");
      $("div").animate({left:'+=200'},2000);
      $("div").queue(function () {
          $(this).addClass("newcolor");
          $(this).dequeue();
      });
      $("div").animate({left:'-=200'},500);
      $("div").queue(function () {
          $(this).removeClass("newcolor");
          $(this).dequeue();
      });
      $("div").slideUp();
});
威信县| 四会市| 拉萨市| 静乐县| 甘谷县| 泰安市| 东平县| 镇江市| 南投县| 昔阳县| 博爱县| 舞阳县| 莆田市| 墨竹工卡县| 那曲县| 宣汉县| 旬阳县| 合川市| 凌海市| 观塘区| 襄樊市| 澄江县| 平顶山市| 会昌县| 班玛县| 丹阳市| 临颍县| 于田县| 东平县| 兴仁县| 永寿县| 嘉荫县| 宁明县| 龙游县| 陆河县| 鹰潭市| 南丰县| 灌云县| 白玉县| 含山县| 密山市|