展开导航菜单 [英] Expand navigation menu

查看:104
本文介绍了展开导航菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用JQuery扩展导航菜单.
主菜单1图片
submenu1
submenu2
submenu3
主菜单2图片
submenu1
submenu2
submenu3

当我单击图像时,只展开子菜单项.当我单击Main menu1文本时,将重定向到其他页面.
请任何人帮我...

主菜单1和图像位于相同的angar 标签中..

例子

How can expand navigation menu using JQuery..

Main menu1 image
submenu1
submenu2
submenu3
Main menu2 image
submenu1
submenu2
submenu3

when i click in image than only expand the sub menu items. And when i click on Main menu1 text than redirect into some other page.
please any one help me...

main menu1 and image are in same angar tag..

example



  • Page 4
  • Page 5
  • Page 6

  • Page 7
  • Page 8
  • Page 9

推荐答案

您必须为图像和Main menu1文本提供2个不同的ID/类.单击图像后,为子菜单设置显示"属性,单击mainmenu1后,将跳转到新的URL.我已经创建了jquery以供更多了解.
You have to give 2 different id/class to your image and Main menu1 text. When the image is click set "display" property for submenu, when mainmenu1 is click then jump to new url. I have create jquery for more understanding.


(文档).ready(函数(){
(document).ready(function () {


(" ).click(函数(){
("#img").click(function () {


这篇关于展开导航菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆