亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

? php教程 PHP開發(fā) jQuery? ??? ??? ?? ????? ??

jQuery? ??? ??? ?? ????? ??

Dec 05, 2016 pm 01:53 PM
jquery

? ??? ???? jQuery? ??? ????? ?? ? ??? ?????. ???? ? ??? ?? ??? ?????. ??? ??? ??? ????.

//初始化文檔
$(document).ready();
//----------------彈出DIV仿模態(tài)窗口開始----------------
var divW;  //DIV寬度
var divH;  //DIV高度
var clientH;  //瀏覽器高度
var clientW;  //瀏覽器寬度
var divTitle;  //DIV標(biāo)題
var pageUrl;  //DIV中加載的頁(yè)面
var div_X;  //DIV橫坐標(biāo)
var div_Y;  //DIV縱坐標(biāo)
function DivWindowOpen(divWidth,divHeight,title,url){
  divW = divWidth;  //DIV寬度
  divH = divHeight;  //DIV高度
  divTitle = title;  //DIV高度
  pageUrl = url;  //DIV中加載的頁(yè)面UR
  lockScreen();  //鎖定背景
  divOpen();
  $("#divTitle").append(divTitle);
  $("#divContent").load(pageUrl);
  //交換X圖片
  $("#x").hover(
    function(){
      $(this).attr("src","images/Close-2.gif");
    },
    function(){
      $(this).attr("src","images/Close-1.gif");
    }
  );
  //關(guān)閉DIV窗口
  $("#x").click(
    function(){
      clearDivWindow();
      clearLockScreen();
    }
  );
}
//返回彈出的DIV的坐標(biāo)
function divOpen(){
  var minTop = 80;  //彈出的DIV記頂部的最小距離
  if($("#divWindow").length == 0){
    clientH = $(window).height();  //瀏覽器高度
    clientW = $(window).width();  //瀏覽器寬度
    div_X = (clientW - divW)/2;  //DIV橫坐標(biāo)
    div_Y = (clientH - divH)/2;  //DIV縱坐標(biāo)
    div_X += window.document.documentElement.scrollLeft;  //DIV顯示的實(shí)際橫坐標(biāo)
    div_Y += window.document.documentElement.scrollTop;  //DIV顯示的實(shí)際縱坐標(biāo)
    if(div_Y < minTop){
      div_Y = minTop;
    }
    $("body").append("<div id=&#39;divWindow&#39;><div id=&#39;divTitle&#39;><img src=&#39;images/Close-1.gif&#39; id=&#39;x&#39; /></div><div id=&#39;divContent&#39;>載入中</div></div>");  //增加DIV
    //divWindow的樣式
    $("#divWindow").css("position","absolute");
    $("#divWindow").css("z-index","200");
    $("#divWindow").css("left",(div_X + "px"));  //定位DIV的橫坐標(biāo)
    $("#divWindow").css("top",(div_Y + "px"));  //定位DIV的縱坐標(biāo)
    $("#divWindow").css("opacity","0.9");
    $("#divWindow").width(divW);
    $("#divWindow").height(divH);
    $("#divWindow").css("background-color","#FFFFFF");
    $("#divWindow").css("border","solid 1px #333333");
    //divTitle的樣式
    $("#divTitle").css("height","20px");
    $("#divTitle").css("line-height","20px");
    $("#divTitle").css("background-color","#333333");
    $("#divTitle").css("padding","3px 5px 1px 5px");
    $("#divTitle").css("color","#FFFFFF");
    $("#divTitle").css("font-weight","bold");
    //x的樣式
    $("#x").css("float","right");
    $("#x").css("cursor","pointer");
    //divContent的樣式
    $("#divContent").css("padding","10px");
  }
  else{
    clientH = $(window).height();  //瀏覽器高度
    clientW = $(window).width();  //瀏覽器寬度
    div_X = (clientW - divW)/2;  //DIV橫坐標(biāo)
    div_Y = (clientH - divH)/2;  //DIV縱坐標(biāo)
    div_X += window.document.documentElement.scrollLeft;  //DIV顯示的實(shí)際橫坐標(biāo)
    div_Y += window.document.documentElement.scrollTop;  //DIV顯示的實(shí)際縱坐標(biāo)
    if(div_Y < minTop){
      div_Y = minTop;
    }
    $("#divWindow").css("left",(div_X + "px"));  //定位DIV的橫坐標(biāo)
    $("#divWindow").css("top",(div_Y + "px"));  //定位DIV的縱坐標(biāo)
  }
}
//鎖定背景屏幕
function lockScreen(){
  if($("#divLock").length == 0){  //判斷DIV是否存在
    clientH = $(window).height();  //瀏覽器高度
    clientW = $(window).width();  //瀏覽器寬度
    //var docH = $("body").height();  //網(wǎng)頁(yè)高度
    //var docW = $("body").width();  //網(wǎng)頁(yè)寬度
    //var bgW = clientW > docW ? clientW : docW;  //取有效寬
    //var bgH = clientH > docH ? clientH : docH;  //取有效高
    $("body").append("<div id=&#39;divLock&#39;></div>")  //增加DIV
    $("#divLock").height(clientH);
    $("#divLock").width(clientW);
    $("#divLock").css("display","block");
    $("#divLock").css("background-color","#000000");
    $("#divLock").css("position","fixed");
    $("#divLock").css("z-index","100");
    $("#divLock").css("top","0px");
    $("#divLock").css("left","0px");
    $("#divLock").css("opacity","0.5");
  }
  else{
    clientH = $(window).height();  //瀏覽器高度
    clientW = $(window).width();  //瀏覽器寬度
    $("#divLock").height(clientH);
    $("#divLock").width(clientW);
  }
}
//清除背景鎖定
function clearLockScreen(){
  $("#divLock").remove();
}
//清除DIV窗口
function clearDivWindow(){
  $("#divWindow").remove();
}
//窗口大小改變時(shí)
$(window).resize(
    function(){
      if($("#divLock").length != 0){
        lockScreen();
      }
      if($("#divWindow").length != 0){
        divOpen();
      }
    }
);
//----------------彈出DIV仿模態(tài)窗口結(jié)束----------------
//改變風(fēng)格
function ChangeStyle(styleName){
  skinName = styleName;
  //SetCookie("Skin", skinName);
  alert(styleName);
  window.location.reload();
}


? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
???
jQuery ?? ??? ?? ??? ??: ?? ?? ??? jQuery ?? ??? ?? ??? ??: ?? ?? ??? Feb 27, 2024 pm 06:45 PM

jQuery ?? ??? ?? ??? ??: ?? ?? ??? jQuery? ? ??? ??? ?? ???? JavaScript ??????, JavaScript ?????? ????? ????? ??? ??? ?????. ? ????? jQuery? ?? ??? ??? ???? ??? ??? ??? ? ??? ???? ?? ??? ?????. jQuery ?? ?? HTML ??? jQuery ?????? ???? ???. CDN ??? ?? ????? ????? ? ????.

jQuery?? PUT ?? ??? ???? ??? ?????? jQuery?? PUT ?? ??? ???? ??? ?????? Feb 28, 2024 pm 03:12 PM

jQuery?? PUT ?? ??? ???? ??? ?????? jQuery?? PUT ??? ??? ??? ?? ??? ??? ??? ?? ????? ? ?? ?? ??? ?? ?? ??? ???? ???. PUT ??? ????? ??????? ??? ???? ?? ??? ?? ????? ?? ???? ?????? ? ?????. ??? jQuery?? PUT ?? ???? ???? ???? ?? ?????. ?? jQuery ????? ??? ????? ??? ?? $.ajax({u? ?? PUT ??? ?? ? ????.

jQuery ?: ???? ?? ?? ??? ???? ??? ?????. jQuery ?: ???? ?? ?? ??? ???? ??? ?????. Feb 28, 2024 pm 09:06 PM

??: jQuery ?: ???? ?? ?? ??? ???? ??? ?????. ? ????? ???? ??? ???? ???? ?? ??? ????. jQuery? ??? ? ???? ?? ?? ??? ??? ??? ? ?? ???? ?? ??? ???, ?? ??? ???? ??? ? ????. ??? jQuery? ???? ???? ?? ?? ???? ??? ???? ??? ???? ???? ?? ??? ?????. ?? jQuery ????? ??? ???? ?? ??? ???? ?????? ???? ???. &lt

jQuery? ???? ?? ??? ??? ?? ?? jQuery? ???? ?? ??? ??? ?? ?? Feb 28, 2024 pm 05:42 PM

??: jQuery? ???? ?? ??? ??? ??? ?????. jQuery? DOM ??? ???? ? ?? ???? ?? ?? JavaScript ????????. ? ??? ?? ?? ???? ?? ?? ??(??)? ??? ??? ???? ?? ??? ?? ????. ? ????? jQuery? ???? ? ??? ???? ??? ???? ???? ?? ??? ?????. ?? ???? jQuery ?????? ???? ???. HTML ??? ?? ??? ?????.

jQuery? ???? ??? ?? ??? ???? ??? ?????? jQuery? ???? ??? ?? ??? ???? ??? ?????? Feb 28, 2024 am 08:39 AM

jQuery? ???? ??? ?? ??? ???? ??? ?????? ????? ????? ??? ?? ??? ???? ?? ??? ?? ????. ??? ??? ??? ???? ???? ? ?? ?? ??? ?? ??? ???? ?? ??? ????. ? ????? jQuery? ???? ??? ?? ??? ???? ??? ???? ???? ?? ??? ?????. jQuery? ???? ?? ??? ???? ?? ?? CSS? ?? ??? ???? ???. height ??? ??? ??? ???? ? ?????.

jQuery?? eq? ?? ? ?? ???? ?? jQuery?? eq? ?? ? ?? ???? ?? Feb 28, 2024 pm 01:15 PM

jQuery? ? ????? DOM ?? ? ??? ??? ???? ? ?? ???? ?? ?? JavaScript ????????. jQuery?? eq() ???? ??? ??? ???? ??? ???? ? ?????. ???? ?? ? ?? ????? ??? ????. jQuery?? eq() ???? ??? ??? ??? ?? ??? ?????. ??? ??? 0?? ???? ?????. ?, ? ?? ??? ???? 0?? ? ?? ??? ???? 1???. eq() ???? ??? ??? ????: $("s

jQuery? ???? ???? ? ?? ???? ?? ?? jQuery? ???? ???? ? ?? ???? ?? ?? Feb 29, 2024 am 08:12 AM

jQuery? ? ??? ?? ???? ?? ?? JavaScript ????????. ? ?? ?? JavaScript? ?? ???? ? ?? ???? ???? ?? ??? ????. ? ????? jQuery? ???? ???? ? ?? ???? ??? ???? ?? ?? ??? ?????. ?? HTML ???? jQuery ?????? ???? ???. jQuery ?????? ?? ??? ?? ??? ??? ? ????.

jQuery ??? ?? ??? ??? ??? ? ? ???? jQuery ??? ?? ??? ??? ??? ? ? ???? Feb 29, 2024 am 09:03 AM

jQuery ??? ?? ??? ??? ??? ? ? ???? jQuery? ???? DOM ??? ??? ? ??? ?? ??? ??? ???? ?? ??? ?? ?????. ? ?? jQuery?? ???? ???? ???? ? ??? ?? ??? ? ????. ??? jQuery ??? ?? ??? ??? ???? ?? ????? ???? ? ?? ??? ?? ?? ??? ?? ?????. ?? 1: attr() ???? typeof ???? // ???? ??? ?? ??? ??? ??

See all articles