有关菜单/下拉控件的建议 [英] Advice about a menu/dropdown control

查看:59
本文介绍了有关菜单/下拉控件的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要有关要在页面中实现的控件的建议.

请查看链接

http://www.waterfordcity.ie/maps/maps.htm

相信我这不是垃圾邮件或有害链接.

左侧的显示地图"部分下有一棵树.我想在我的页面中完全实现它,因为它适合我们的需要-单击每个节点将其打开,然后单击每个子节点将在该节点旁边显示关联的图像,并在地图中进行一些操作.单击某些其他父节点并打开后,上一个父节点将关闭

如果您不打算访问该URL,那么我尝试在此处进行解释..

控制如下

parent1
parent2
parent3

在parent1被点击后

parent1
< space> subnode1
< space> subnode2
parent2
parent3

单击subnode1时
parent1
< space>< img> subnode1
< space> subnode2
parent2
parent3

单击subnode1时
parent1
< space> subnode1
< space>< img> subnode2
parent2
parent3


单击parent2时,将打开parent2并关闭parent1.
parent1
parent2
< space> subnode1
< space> subnode2
parent3



我不确定如何建立这样的控件.

有人可以请教吗?

谢谢

Vijay

Hi

I need advice on a control I want to implement in my page.

Please see the link

http://www.waterfordcity.ie/maps/maps.htm

Believe me it is not a spam or harmful link.

There is a tree under show map section at the left side. I want to exactly implement it in my page as it suits our need- clicking on each node opens it and clicking on each sub node shows associated image just beside the node and also does some operation in the map. When some other parent node is clicked and opened the previous parent node is closed

If you do not intend to visit the url then I try to explain here..

Control is as follows

parent1
parent2
parent3

after parent1 is clicked

parent1
<space>subnode1
<space>subnode2
parent2
parent3

when subnode1 is clicked
parent1
<space><img>subnode1
<space>subnode2
parent2
parent3

when subnode1 is clicked
parent1
<space>subnode1
<space><img>subnode2
parent2
parent3


When parent2 is clicked, parent2 is opened and parent1 is closed.
parent1
parent2
<space>subnode1
<space>subnode2
parent3



I am not sure how to build such a control.

Can anyone advice please?

Thanks

Vijay

推荐答案

这是.NET中的内置控件.
http://msdn.microsoft.com/en-us/library/ecs0x9w5% 28VS.80%29.aspx [ ^ ]

http://www.asp.net/cssadapters/menu.aspx [
This is a built-in control in .NET

http://msdn.microsoft.com/en-us/library/ecs0x9w5%28VS.80%29.aspx[^]

http://www.asp.net/cssadapters/menu.aspx[^]

You can find a lot of links on google.

Good luck.


如果右键单击页面并查看源代码,您将确切地看到它是如何完成的.整个菜单是div的简单html结构,可以使用onclick事件将其隐藏或显示.
干杯
If you right-click on the page and view the source, you will see exactly how it is done. The entire menu is a simple html structure of divs that are simply hidden or shown using onclick events.
Cheers


这篇关于有关菜单/下拉控件的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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