织梦dedecms当channel设置了type和typeid时currentstyle失效时js解决方法
来源:互联网 发布:知乎 净化空气植物 编辑:程序博客网 时间:2024/05/02 02:40
当调用channel标签设置type和typeid时我们的currentstyle会失效,具体原因在channel.lib.php这个处理文件,可以直接在里面搞定,但有一定难度,很麻烦,但可以用js另类解决
js:
id为index的为首页li里面的 li1为hover的效果 $(function(){$("#index").removeClass("li1");$a = $("body").attr("id");//当前栏目bodyid$("."+$a).addClass("li1");});
在list_*.htm模板内面在<body id=”ok{dede:field name=typeid/}> 这样js就能得到当前栏目的id也可以直接把js放在模板内面这样就可以直接用这个织梦标签获取到id了
- 织梦dedecms当channel设置了type和typeid时currentstyle失效时js解决方法
- Dedecms channel 标签 指定typeid时 currentstyle无效的修复办法
- dede:channel 标签指定 typeid 时 currentstyle无效失效的修复办法
- 织梦 channel 标签 指定typeid时 currentstyle无效的修复办法
- 在使用dedecms的channel标签来调子栏目的时候,指定 “type=son typeid=x” 发现currentstyle无效
- dede:channel currentstyle 失效问题
- dedecms中关于{dede:channel type=\'son\'}无子栏目时取同级栏目问题是解决方法分享
- DedeCms中Channel用typeid无效
- channel指定typeid之后,currentstyle无效的解决办法
- dedecms关于{dede:channel type='son'}无子栏目时取同级栏目问题是解决方案
- dedecms织梦模板中currentstyle标签失效不能使用
- 织梦channel 频道标签currentstyle当前栏目高亮,无法应用于type=sun或son子分类中
- django设置当浏览器关闭时,session失效
- dede channel currentstyle无效
- DedeCms当没有子栏目时显示同级栏目 关闭该功能解决方法
- 当Reshaper快捷键失效时
- 织梦dedecms自定义功能函数(4):typeid获取顶级栏目id和名称
- 增加channel标签的type父栏目调用并支持currentstyle
- dedecms小助手使用方法
- js实现tag标签效果
- dedecms主要类文件
- 支持织梦标签的quick text tag配置文件(连续更新)
- java实现双向链表的操作
- 织梦dedecms当channel设置了type和typeid时currentstyle失效时js解决方法
- 织梦顶踩模块
- 织梦dedecms channelartlist下autoindex失效解决办法
- 修改mysql密码
- linux环境给apache加gzip功能
- php网络通讯socket
- PHP: 字符串变量中大括号
- Widget logic插件实现wordpress侧边栏布局
- 子层div绝对定位ie6下无效