zoukankan      html  css  js  c++  java
  • 网页右侧滑动块

    /*页面右侧栏动作*/
            $(".side ul li").hover(function(){
                var selected = $(this).attr("id");
                if(selected != null && selected == "tel"){
                    $(this).find(".sidebox").stop().animate({"width":"174px"},200).css({"opacity":"1","filter":"Alpha(opacity=100)","background":"#ae1c1c"})
                }else {
                   $(this).find(".sidebox").stop().animate({"width":"124px"},200).css({"opacity":"1","filter":"Alpha(opacity=100)","background":"#ae1c1c"})
                }
            },function(){                           
           $(this).find(".sidebox").stop().animate({"width":"54px"},200).css({"opacity":"0.8","filter":"Alpha(opacity=80)","background":"#000"}) });

      function goPageTop(){
        $('html,body').animate({'scrollTop':0},600); //滚回顶部的时间,越小滚的速度越快~
      }

      

    <!-- 右侧滑动 -->
    <div class="side">
        <ul>
            <li>
                <a href="" target="_blank">
                    <div class="sidebox"><img src="/img/icon/side/qq.png">在线咨询</div>
                </a>
            </li>
            <li id="tel">
                <a href="#hotline">
                    <div class="sidebox" ><img src="/img/icon/side/tel.png"><strong>400 720 7200</strong></div>
                </a>
            </li>
            <li>
                <a href="">
                    <div class="sidebox"><img src="/img/icon/side/help_center.png">帮助中心</div>
                </a>
            </li>
            <li>
                <a href="javascript:goPageTop();" class="sidetop">
                    <div class="sidebox" ><img src="/img/icon/side/gotop.png">返回顶部</div>
                </a>
            </li>
        </ul>
    </div>
  • 相关阅读:
    ubuntu 搜索文件方法(find命令)
    tomcat ip访问
    Linux下tomcat 的启动 关闭 kill
    Hibernate 之 使用
    tar 用法
    ubuntu下配置django+apache+mysql+mod_python+Python
    Windows Mobile Ping 命令实现(转)
    C#异步方法调用(四大方法详解)
    HTML基础(一):HTML简介
    windows2003系统的iis不能下载exe文件
  • 原文地址:https://www.cnblogs.com/freespider/p/4280168.html
Copyright © 2011-2022 走看看