zoukankan      html  css  js  c++  java
  • 脚本

     <script type="text/javascript">
             $(document).ready(function() {
                 $(".mid_tex").show();
                 $(".mid_title03").click(function() {
                     //$(this).css({ borderStyle: "inset", cursor: "wait" });
                     //$(".mid_tex:visible").slideUp("slow");
                     //$(this).next().slideDown("slow");
                     var img = $(this).find("img");
                     var answer = $(this).next();
                     if (answer.is(':visible')) {
                         img[0].attributes["src"].value = "/images/day_icon01.gif";
                         answer.slideUp("slow");
                     }
                     else {
                         img[0].attributes["src"].value = "/images/day_icon02.gif";
                         answer.slideDown("slow");
                     }
                     return false;
                 });

               

             });
           
        </script>

  • 相关阅读:
    jquery:class选择器(父子关系)
    jquery:跳转网页
    jquery:获得当前点击对象 : $(this)
    jquery:向后台提交数组
    03 适配器 代理 外观 装饰者
    02 工厂模式
    01 单例模式 Singleton
    设计模式概论与原则 & UML类图
    06 JDBC & ORM
    05 注解与反射 & JVM
  • 原文地址:https://www.cnblogs.com/zwei1121/p/2616945.html
Copyright © 2011-2022 走看看