數(shù)據(jù)加載中……

          2009年9月28日

          jquery validation

               摘要:  1<%@page contentType="text/html; charset=GBK"%>  2<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  3<%@ taglib uri="http:/...  閱讀全文

          posted @ 2009-10-15 13:37 R99 閱讀(406) | 評(píng)論 (0)編輯 收藏
          [jQuery]animate(滑塊滑動(dòng))

          html

          <p><href="#" class="run">Run</a></p>
          <div id="box">
          </div>
          css
          <style type="text/css">
          body 
          {}{
              margin
          : 20px auto;
              padding
          : 0;
              width
          : 580px;
              font
          : 80%/120% Arial, Helvetica, sans-serif;
          }

          {}{
              font-weight
          : bold;
              color
          : #000000;
          }

          #box 
          {}{
              background
          : #6699FF;
              height
          : 100px;
              width
          : 100px;
              position
          : relative;
          }

          </style>


          jquery
           1$(document).ready(function(){
           2    $(".run").click(function(){
           3    
           4        $("#box").animate({opacity: "0.1", left: "+=400"}1200)
           5        .animate({opacity: "0.4", top: "+=160", height: "20", width: "20"}"slow")
           6        .animate({opacity: "1", left: "0", height: "100", width: "100"}"slow")
           7        .animate({top: "0"}"fast")
           8        .slideUp()
           9        .slideDown("slow")
          10        return false;
          11    
          12    }
          );
          13}
          );

          posted @ 2009-10-13 18:01 R99 閱讀(442) | 評(píng)論 (0)編輯 收藏
          jquery學(xué)習(xí)筆記

          :has 

          1<div style="width:100%;height:100%;border-style:solid;border:2px;">
          2    <div style="width:40px;height:30px;border-style:solid;border:2px;">
          3        <p>Hello</p>
          4    </div>
          5    
          6    
          7    
          8</div>
          $("div:has(p)")


          選中的是最外層的div

          posted @ 2009-10-12 17:43 R99 閱讀(156) | 評(píng)論 (0)編輯 收藏
          正則表達(dá)式 預(yù)搜索

          (?=xxx)

          正向預(yù)搜索(向右)

          正向預(yù)搜索,判斷當(dāng)前位置右側(cè)是否能匹配指定表達(dá)式

          (?!xxx)

          正向預(yù)搜索否定,判斷當(dāng)前位置右側(cè)是否不能夠匹配指定表達(dá)式

          (?<=xxx)

          反向預(yù)搜索(向左)

          反向預(yù)搜索,判斷當(dāng)前位置左側(cè)是否能夠匹配指定表達(dá)式

          (?<!xxx)

          反向預(yù)搜索否定,判斷當(dāng)前位置左側(cè)是否不能夠匹配指定表達(dá)式

          posted @ 2009-09-28 16:26 R99 閱讀(278) | 評(píng)論 (0)編輯 收藏
          主站蜘蛛池模板: 固安县| 金塔县| 湖北省| 郁南县| 正蓝旗| 岳普湖县| 山东省| 蓝山县| 兴隆县| 增城市| 富顺县| 涪陵区| 双流县| 兴安县| 桐城市| 峡江县| 恭城| 仁寿县| 仙居县| 察哈| 三台县| 许昌县| 汾西县| 尼勒克县| 涟源市| 漾濞| 松阳县| 全州县| 温宿县| 漳浦县| 松潘县| 乐安县| 仙桃市| 陇西县| 通河县| 栖霞市| 绵竹市| 兴海县| 漾濞| 楚雄市| 青神县|