登录
首页 » javascript » jq点击展开菜单

jq点击展开菜单

于 2022-09-23 发布 文件大小:32.45 kB
0 96
下载积分: 2 下载次数: 1

代码说明:

使用jquery设计菜单功能,关键代码$(this).parent().toggleClass("bg"); $(this).parent().prevAll("dt").removeClass("bg") $(this).parent().nextAll("dt").removeClass("bg") $(this).parent().next().slideToggle(); $(this).parent().prevAll("dd").slideUp("slow"); $(this).parent().next().nextAll("dd").slideUp("slow"); return false;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • HTML手机签到转盘抽奖页面模板
    手机签到转盘抽奖界面
    2022-03-06 21:22:53下载
    积分:1
  • 对联广告
    说明:  自己写的对联广告,随滚动条滚动,代码简单有备注(Write your own couplet ads, scroll along with the scroll bar, the code is simple with notes)
    2020-06-23 22:20:02下载
    积分:1
  • HTML表格生成Excel文件代码
    HTML表格生成Excel文件代码是一款基于jquery.table2excel插件实现的可以根据你的需要导出HTML表格中的内容,不需要的行可以不导出。
    2022-07-05 07:24:45下载
    积分:1
  • this a program that allow the user enter the certain amount of money to convert...
    this a program that allow the user enter the certain amount of money to convert into cents. This program with GUI-this is a program that allow the user enter the certain amount of money to convert into cents. This program with GUI
    2022-04-11 20:11:57下载
    积分:1
  • 利剑Extjs5
    汇集了许多csdn 上对ext.js 5.0版本的开发技巧,以及配置参数的讲解 ,若有一定程序,阅读此文件,功力会有所提升(Many CSDN development techniques for ext.js version 5.0 and explanations of configuration parameters are collected. If you have a certain program and read this document, your ability will be improved.)
    2020-06-24 07:40:01下载
    积分:1
  • 铝数据库
    工作 ;校友数据库管理系统项目为java代码 ;基本alumini数据库用于降低高校或高校数据库的使用增加
    2022-08-24 11:20:52下载
    积分:1
  • 完整
    在线学习系统,JAVA开发。。数据库MYSQL。(Online learning system)
    2017-12-31 14:53:04下载
    积分:1
  • keyboard
    说明:  一个虚拟键盘 组件 用于表单输入,项目有需要的话可以使用,解决一下安全性问题(Components of a virtual keyboard for form input, the project can be used if necessary to address the security issues about)
    2011-02-25 14:50:25下载
    积分:1
  • js 写入文档
    $(function(){ $("#import").click(function(){ $("#files").click(); }); }); function importMsg(){     var selectedFile = document.getElementById("files").files[0];//获取读取的File对象     var name = selectedFile.name;//读取选中文件的文件名     var size = selectedFile.size;//读取选中文件的大小     console.log("文件名:"+name+"大小:"+size);     var reader = new FileReader();//这里是核心!!!读取操作就是由它完成的。     reader.readAsText(selectedFile);//读取文件的内容     reader.onload = function(){         console.log(this.result);//当读取完成之后会回调这个函数,然后此时文件的内容存储到了result中。直接操作即可。     }; } $(function(){ $("#export").click(function(){     var content = "This is used as HTML5 log";     var blob = new Blob([content], {"type": "
    2022-01-28 03:32:10下载
    积分:1
  • 各种有用的JavaScript脚本,很有用的
    各种实用的javascript脚本,很实用-A variety of useful javascript script, very useful
    2022-04-18 04:52:45下载
    积分:1
  • 696518资源总数
  • 105958会员总数
  • 18今日下载