zoukankan      html  css  js  c++  java
  • 今儿写前台tab效果时用的,(jquery)

    今儿写前台tab效果时用的,(jquery)
    <asp:Content ContentPlaceHolderID="head" ID="head1" runat="server">
        <script type="text/javascript" language="javascript">
             $(document).ready(function(){
                var $npros = $('.divpro');
                var $nprotitle = $('#nptil li');
                $nprotitle.mousemove(function(){              
                        $npros.hide();
                        $nprotitle.css({color:"#000000","80px",height:"25px",background:"#EEEEEE",border:"solid 0px #CCCCCC"});
                        var index = $nprotitle.index($(this));
                        $($nprotitle.get(index)).css({color:"#FFFFFF","78px",height:"23px",cursor:"pointer",background:"#FF6944",border:"solid 1px #CCCCCC","border-bottom":"solid 1px #FF6944"});
                        $($npros.get(index)).show();
                });
             })
             $(document).ready(function(){
                var $hpros = $('.divpro2');
                var $hprotitle = $('#hptil li');
                $hprotitle.mousemove(function(){              
                        $hpros.hide();
                        $hprotitle.css({color:"#000000","80px",height:"25px",background:"#EEEEEE",border:"solid 0px #CCCCCC"});
                        var index = $hprotitle.index($(this));
                        $($hprotitle.get(index)).css({color:"#FFFFFF","78px",height:"23px",cursor:"pointer",background:"#FF6944",border:"solid 1px #CCCCCC","border-bottom":"solid 1px #FF6944"});
                        $($hpros.get(index)).show();
                });
             })
        </script>
    </asp:Content>
  • 相关阅读:
    在from表单中提交同name数据时,怎么获取所有值
    面试题
    String的创建模式
    spring的事务支持
    微信小程序+java实现附件上传以及下载打开详细过程记录
    spring编写AOP代理上的一点小坑
    java静态内部类的作用
    Python学习 :json、pickle&shelve 模块
    Python学习 :正则表达式
    Python学习 :常用模块(四)----- 配置文档
  • 原文地址:https://www.cnblogs.com/pipizhu/p/1576531.html
Copyright © 2011-2022 走看看