简体   繁体   English

用click事件替换superfish悬停事件

[英]Replace superfish hover event with click event

I have used superfish module for more style of my site. 我已经使用了superfish模块来实现网站的更多样式。 It is working fine but I want to remove the mouseover effect from main menu link. 它工作正常,但我想从主菜单链接中删除鼠标悬停效果。 I want to just display the child menu link after clicking the main menu. 我只想在单击主菜单后显示子菜单链接。

My site link is http://devel.studiesweekly.com 我的网站链接是http://devel.studiesweekly.com

when you hover the mouse in main red button menu link it is showing immidiately the child menu bar bellow. 当您将鼠标悬停在主红色按钮菜单链接中时,它立即在子菜单栏下方显示。 I want to show only after click the main menus. 我只想在单击主菜单后显示。

How can I do this? 我怎样才能做到这一点? I have used drupal 7.x 我用过drupal 7.x

You can change the event from the superfish library from hover to click . 您可以从超级鱼库中将事件从hover更改为click

Replace your current superfish library code with the code provided in this answer . 此答案中提供的代码替换当前的superfish库代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM