jss02

         $(this).find(".ss").find("a").attr(
           "target", G);
         $(this).find(".ss").find("a").text(D);
        } else {
         $(this).find(".ss").hide();
        }
       }
      })
 }
 if ($(".box4").length > 0) {
  $(".box4")
    .each(
      function() {
       var e = $(this).html();
       $(this).html("");
       if ($(this).attr("noTitle") == "true") {
        $(
          "<div class='box4_topcenter2'><div class='box4_topleft2'><div class='box4_topright2'></div></div></div>")
          .appendTo($(this));
       } else {
        $(
          "<div class='box4_topcenter'><div class='box4_topleft'><div class='box4_topright'><div class='title'></div></div></div></div>")
          .appendTo($(this));
       }
       $(
         "<div class='box4_middlecenter'><div class='box4_middleleft'><div class='box4_middleright'><div class='boxContent'></div></div></div></div>")
         .appendTo($(this));
       $(
         "<div class='box4_bottomcenter'><div class='box4_bottomleft'><div class='box4_bottomright'></div></div></div>")
         .appendTo($(this));
       if ($(this).attr("panelTitle") != null) {
        $(this).find(".title").append(
          $(this).attr("panelTitle"));
       }
       if ($(this).attr("panelWidth") != null) {
        var E = $(this).attr("panelWidth");
        var D = E.substr(E.length - 1, 1);
        if (D == "%") {
         $(this).width(E);
        } else {
         var F = Number($(this).attr("panelWidth"));
         $(this).width(F);
        }
       }
       if ($(this).attr("panelHeight") != null) {
        $(this).find(".box4_topcenter").height(27);
        $(this).find(".box4_bottomcenter").height(5);
        var C = Number($(this).attr("panelHeight"))
          - $(this).find(".box4_topcenter")
            .outerHeight()
          - $(this).find(".box4_bottomcenter")
            .outerHeight();
        $(this).find(".boxContent").height(C);
       }
       $(this).find(".boxContent").html(e);
       if ($(this).attr("overflow") != null) {
        $(this).find(".boxContent").css({
         overflow : $(this).attr("overflow")
        });
       }
      });
 }
 if ($("#vtabConIn").length > 0) {
  exitVtab = 1;
  try {
   var p = jQuery.jCookie("vtabIndex");
   if (p != false) {
    vtabIdx = parseInt(p);
   }
   $(".list_menu2").not(":eq(" + vtabIdx + ")").hide();
   $(".vtab >div").eq(vtabIdx).addClass("vtab_cur");
   $(".vtab >div").each(function(e) {
    $(this).click(function() {
     $(".vtab >div").removeClass("vtab_cur");
     $(this).addClass("vtab_cur");
     jQuery.jCookie("vtabIndex", e.toString());
     $(".list_menu2").hide();
     $(".list_menu2").eq(e).slideDown(600, function() {
      $(".list_menu2").not(":eq(" + e + ")").hide()
     });
    });
   });
  } catch (v) {
  }
 }
 if ($(".list_menu2").length > 0) {
  try {
   $(".list_menu2")
     .each(
       function() {
        if ($(this).attr("showAll") != "true") {
         $(this).find(".child").hide();
         $(this)
           .find(".parent")
           .each(
             function() {
              $(this)
                .find("a")
                .eq(0)
                .click(
                  function() {
                   $(
                     this)
                     .parents(
                       ".list_menu2")
                     .find(
                       ".child")
                     .hide();
                   if (broswerFlag == "IE6"
                     || broswerFlag == "IE7") {
                    $(
                      this)
                      .parent()
                      .find(
                        "ul")
                      .slideDown()
                   } else {
                    $(
                      this)
                      .parent()
                      .next(
                        "ul")
                      .slideDown()
                   }
                  })
             })
        }
        $(this).find("dt").find("a").click(
          function() {
           $(this).parents(".list_menu2")
             .find("dt").find("a")
             .removeClass("current");
           $(this).addClass("current")
          });
       });
  } catch (v) {
  }
 }
 if ($(".list_menu3").length > 0) {
  $("#scrollContent").css({
   position : "static"
  });
  try {
   $(".list_menu3 >div span").each(function() {
    $(this).click(function() {
     $(".list_menu3 >div").removeClass("current");
     $(this).parent("div").addClass("current")
    });
    $(this).hover(function() {
     $(this).animate({
      paddingLeft : "40px"
     }, "fast");
    }, function() {
     $(this).animate({
      paddingLeft : "20px"
     });
    });
   });
  } catch (v) {
  }
 }
 if ($(".list_menu3_min").length > 0) {
  $("#scrollContent").css({
   position : "static"
  });
  try {
   $(".list_menu3_min >div span").each(function() {
    $(this).click(function() {
     $(".list_menu3_min >div").removeClass("current");
     $(this).parent("div").addClass("current");
    });
    $(this).hover(function() {
     $(this).animate({
      paddingLeft : "30px"
     }, "fast");
    }, function() {
     $(this).animate({
      paddingLeft : "10px"
     });
    });
   });
  } catch (v) {
  }
 }
 if ($(".date").length > 0) {
  var l = document.createElement("script");
  l.type = "text/javascript";
  l.src = prePath + "js_util/form/datePicker/WdatePicker.js";
  document.body.appendChild(l);
  $(".date").each(function() {
   var e = "yyyy-MM-dd";
   if ($(this).attr("dateFmt") != null) {
    e = $(this).attr("dateFmt");
   }
   $(this).focus(function() {
    WdatePicker({
     skin : themeColor,
     isShowClear : true,
     dateFmt : e,
     onpicked : function(C) {
      $(this).blur();
     }
    });
   });
  });
 }
 $("input:file[class='']").addClass("file");
 $("input:file[class='file']").rebrushfileupload();
 var o;
 $(
   "input:text[class=''],input:password[class=''],input:text[class*=validate],input:password[class*=validate]")
   .each(function() {
    $(this).addClass("textinput");
    $(this).hover(function() {
     if (o != $(this)[0]) {
      $(this).removeClass("textinput");
      $(this).addClass("textinput_hover")
     }
    }, function() {
     if (o != $(this)[0]) {
      $(this).removeClass("textinput_hover");
      $(this).addClass("textinput")
     }
    });
    $(this).focus(function() {
     o = $(this)[0];
     $(this).removeClass("textinput");
     $(this).removeClass("textinput_hover");
     $(this).addClass("textinput_click")
    });
    $(this).blur(function() {
     o = null;
     $(this).removeClass("textinput_click");
     $(this).addClass("textinput")
    });
    if ($(this).attr("clearable") == "true") {
     $(this).clearableTextField()
    }
    if ($(this).attr("maxNum") != null) {
     $(this).maxlength()
    }
    if ($(this).attr("checkStrength") == "true") {
     $(this).password_strength()
    }
    if ($(this).attr("watermark") != null) {
     $(this).watermark("watermark", $(this).attr("watermark"))
    }
   });
 $("input:password[class='textinput'],input:password[class*=validate]")
   .each(function() {
    $(this).caps(function(e) {
     if (jQuery.browser.safari) {
      return
     }
     if (e) {
      $.cursorMessage("注意:大写键开启了")
     } else {
     }
    })
   });
 $(
   "input:text[class='date'],input:text[class='cusDate'],input:text[class='keypad'],input:text[class='color']")
   .each(function() {
    $(this).hover(function() {
     if (o != $(this)[0]) {
      $(this).addClass("date_hover");
     }
    }, function() {
     if (o != $(this)[0]) {
      $(this).removeClass("date_hover");
     }
    });
    $(this).focus(function() {
     o = $(this)[0];
     $(this).removeClass("date_hover");
     $(this).addClass("date_click");
    });
    $(this).blur(function() {
     o = null;
     $(this).removeClass("date_click");
    })
   });
 $("textarea").each(function() {
  if ($(this).attr("class") == "") {
   $(this).addClass("textarea");
  }
  if ($(this).attr("maxNum") != null) {
   $(this).maxlength({
    maxCharacters : parseInt($(this).attr("maxNum"))
   });
  }
  if ($(this).attr("resize") == "true") {
   $(this).TextAreaResizer();
  }
  if ($(this).attr("autoHeight") == "true") {
   $(this).css({
    height : "auto"
   });
   $(this).attr("rows", 5);
   $(this).autoGrow()
  }
  if ($(this).attr("watermark") != null) {
   $(this).watermark("watermark", $(this).attr("watermark"));
  }
 });
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值