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

jQuery實(shí)現(xiàn)單擊按鈕遮罩彈出對(duì)話(huà)框效果(2)

 更新時(shí)間:2022年03月30日 15:17:52   作者:守護(hù)_瀟瀟  
這篇文章主要為大家詳細(xì)介紹了jQuery實(shí)現(xiàn)單擊按鈕遮罩彈出對(duì)話(huà)框效果,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了jQuery實(shí)現(xiàn)彈出對(duì)話(huà)框的具體實(shí)現(xiàn)代碼,供大家參考,具體內(nèi)容如下

首先,這里的引用jquery-1.4.4.min.js和jquery.XYTipsWindow.min.2.8.js這兩個(gè)js,還有一個(gè)jquery.XYTipsWindow.2.8.css話(huà)不多說(shuō),這里直接上代碼,留著以后備用。

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>無(wú)標(biāo)題文檔</title> 
<!--使用對(duì)畫(huà)框需要的兩個(gè)js--> 
 <script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script> 
 <script type="text/javascript" src="../js/jquery.XYTipsWindow.min.2.8.js"></script> 
<link href="../css/jquery.XYTipsWindow.2.8.css" rel="external nofollow" type="text/css" rel="stylesheet" /> 
<script type="text/javascript"> 
 $(document).ready(function() { 
  
 $("#change").click(function(){ 
 
  $.XYTipsWindow({ 
   ___title:"修改密碼", 
   ___boxID:"change_pwd", 
   ___content:"id:pwd", 
   ___width:"200", 
   ___height:"100", 
   ___showbg:true, 
   ___drag:"___boxTitle" 
    
  }); 
   
  
 }); 
  
 $("#no").click(function(){ 
  //alert("ss"); 
  $.XYTipsWindow.removeBox(); 
  }); 
   
 $("#ok").click(function(){ 
  //alert("ss"); 
  $.XYTipsWindow.removeBox(); 
  //獲取input的值 
  //$(".newpwd").val() 
  }); 
   
   
  
  
 }) 
 </script> 
 
</head> 
 
<body style="text-align:center; padding-top:100px;"> 
<button id="change">修改密碼</button> 
<div id="pwd"><div class="input"><input class="newpwd" value="請(qǐng)輸入" stylr="color:gray;" onfocus="javascript:if(this.value == '請(qǐng)輸入') this.value='';this.style.color='#00CCCC';" 
onblur="javascript:if(this.value == '') this.value='請(qǐng)輸入';this.style.color='gray';"/></div> 
<div class="button"> 
<input id="ok" type="button" value="確定"/> 
<input id="no" type="button" value="取消"/> 
</div> 
</div> 
<style type="text/css"> 
 #pwd{ 
 display:none; 
 } 
  
 .button{ 
 margin-bottom:10px; 
 padding-top:10px; 
 } 
 .newpwd{ 
 margin:10px; 
 border:1px thin; 
 } 
</style> 
</div> 
</body> 
</html>

效果圖:

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

泾源县| 驻马店市| 盱眙县| 上饶市| 奇台县| 临邑县| 虞城县| 成武县| 成武县| 清原| 乌什县| 西贡区| 韶关市| 桐乡市| 乌恰县| 澎湖县| 天柱县| 武冈市| 德清县| 福建省| 凯里市| 喀喇沁旗| 石景山区| 通城县| 台湾省| 中宁县| 北碚区| 巴塘县| 台东市| 黎平县| 桐城市| 武川县| 黔东| 楚雄市| 拜泉县| 北宁市| 会宁县| 泸水县| 荣成市| 高阳县| 沙雅县|