jquery动画stop的使用
来源:广州中睿信息技术有限公司官网
发布时间:2012/10/21 23:25:16 编辑:admin 阅读 369
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-t

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无档</title>
<script src="jq.js" type="text/javascript"></script>
<script src="js.js" type="text/javascript"></script>
</head>
<style>
#menu{
 width:300px; .haschildren{
 padding:3px;
 background-color:#999;
 margin-bottom:11px; div a{
 z-index:-11px;
 background:#666;
 display:none;
 float:left;
 width:300px;
}

</style>
<body>
<div id="menu">
 <div class="haschildren">
         <span>第一章</span>
        <a>javascript</a>
        <a>加入</a>
        <a>编写方法</a>
        <a>小结</a>
    </div>
    <div class="haschildren">
     <span>第二章</span>
    <a>jquery选择器是什么</a>
    <a>jquery的优势</a>
    <a>jquery选择器</a>
    <a>小结</a>
    </div> </div> </body>
</html>
$(document).ready(function(){
  $(".haschildren").hover(function(){   $(this).children("a").stop(true,true).slideDown(511).end()
  .siblings().children("a").stop(true,true).slideUp(111);   },function(){
    $(this).stop(true,true);
   $(this).children("a").slideUp(1111);  
});

我的问题网 www.shenzhidao.com 有关于网站的东西欢迎大家一起交流!
联系我们CONTACT 扫一扫
愿景:成为最专业的软件研发服务领航者
中睿信息技术有限公司 广州•深圳 Tel:020-38931912 务实 Pragmatic
广州:广州市天河区翰景路1号金星大厦18层中睿信息 Fax:020-38931912 专业 Professional
深圳:深圳市福田区车公庙有色金属大厦509~510 Tel:0755-25855012 诚信 Integrity
所有权声明:PMI, PMP, Project Management Professional, PMI-ACP, PMI-PBA和PMBOK是项目管理协会(Project Management Institute, Inc.)的注册标志。
版权所有:广州中睿信息技术有限公司 粤ICP备13082838号-2