导航菜单 - 有想法吗?

发布于 2024-07-27 04:20:03 字数 432 浏览 2 评论 0原文

我目前正在自学创建网站 - 这个特定的网站是为我拥有的业务而设计的。 我正在使用 Dreamweaver CS3 来执行此操作。

我需要一些有关我尝试创建的水平导航菜单的帮助。 我的网站中有三个主要类别,每个类别都有自己的小图像来代表它们。 我希望将所有三个图像并排放置在我的公司徽标下方,充当导航菜单。

例如,其中一个部分是酒精。 当用户将鼠标放在“酒精”图像上时,下面会出现一个下拉菜单,显示各个部分,例如烈酒、啤酒等。

经过一些研究后,我无法完全确定执行此操作的最佳方法。 在学习 Dreamweaver 时,我遇到了 Spry Menus,我认为它可以完成这项工作。 但我现在也了解了 Fireworks CS3 中的弹出菜单(我也可以使用它)。

我真的正在寻找有关此事的其他意见,并且希望获得有关最佳路线的建议。

谢谢。

I'm currently teaching myself to create websites - this particular site is for a that business I have. I'm using Dreamweaver CS3 to do so.

I need some help with the horizontal navigation menu I am trying to create. I have three main categories within my website, each with their own small image to represent them. I want to have all three images, side by side underneath my company logo, acting as the navigational menu.

So for example, one section is Alcohol. When the user puts their mouse over the 'alcohol' image, a menu drops down underneath to show the subsections eg spirits, beer etc.

After doing some research, I can't quite decide the best way to do this. Whilst learning Dreamweaver, I have come across Spry Menus, which I thought would do the job. But I have also now learned about pop-up menus in Fireworks CS3 (which I also have available to me).

I'm really looking for some other opinions on the matter and would appreciate any recommendations about the best route to take with this.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

别再吹冷风 2024-08-03 04:20:03

我更喜欢学习 CSS 菜单,而不是使用 Dreamweaver 生成菜单。 您可以尝试这个

I would prefer learning CSS menus instead of having it generated using Dreamweaver. You can try the this one.

冰火雁神 2024-08-03 04:20:03

我会学习纯 CSS 菜单,然后为了获得更高级的功能,使用像 Superfish 这样的 jQuery 插件

我第一次学习 CSS 菜单的网站是 CSSplay。 这个人还有一个仅针对 CSS 菜单的新网站

我想说的是,浏览其中一些的源代码会教给你很多东西,但最终我会建议使用 Superfish 或其他一些 jQuery 插件来获得更用户友好的菜单,尤其对于鼠标移开的延迟。 缺少鼠标移开延迟可能会导致大多数 CSS 菜单完全无法使用。

I would learn pure CSS menus, and then for more advanced functionality, use jQuery plugins like Superfish

The site I first learned CSS menus from was CSSplay. This same guy also has a newer site aimed only at CSS menus.

I would say going though the source code of some of those will teach you a lot, but ultimately I would recommend using Superfish or some other jQuery plugin for more user-friendly menus, especially for delay on mouseout. A lack of mouseout delay can render most CSS menus completely unusable.

海未深 2024-08-03 04:20:03

尝试http://www.alistapart.com/。 精彩的页面,有很多很好的教程。 http://www.alistapart.com/articles/horizdropdowns/ 例如向您展示如何使用列表和 CSS 构建水平菜单。 也许对您的项目来说是一个很好的起点。

Dreamweaver 确实是一个快速获得结果的好工具。 但是,如果您有兴趣学习实施网站,那么最好亲自动手。 以 http://www.w3schools.com/ 的教程和您选择的优秀编辑器为例从头开始构建您的网站或有趣的项目。 从长远来看,这项投资是有回报的。

Give http://www.alistapart.com/ a try. Wonderful page with a lot of good tutorials. http://www.alistapart.com/articles/horizdropdowns/ for example shows you how to use a list and css to build a horizontal menu. Maybe a good starting point for you project.

Dreamweaver is really a good tool for getting fast results. But if you are interested in learning implementing websites than it is better to get your hands dirty. Take for example the tutorials from http://www.w3schools.com/ and a good editor of your choice and build your website or a fun project from the scratch. On the long run this investment will pay of.

一口甜 2024-08-03 04:20:03

首先,不要使用 Dreamweaver 中内置的片段。 他们太糟糕了。

使用 JavaScript,甚至可能使用 jQuery 之类的 JS 框架。 它为这种情况提供了toggle() 函数。

一般来说,您应该将 JS 函数应用于图像的鼠标悬停。 该函数显示或隐藏 div (您的下拉菜单)。 您可以通过设置 css 参数 display: none (隐藏)或 display: block (可见)来实现。

显示 div 的示例:

<a href="#" onmouseover="show("menu-1")" onmouseout="hide("menu-1")">My menu 1</a>

<div id="menu-1">
    <ul>
        <li>Alcohol</li>
        <li>Spirit</li>
    </ul>
</div>

和一些 javascript:

function show(myid)
{
    document.getElementById(myid).style.display = "block";
}

function hide(myid)
{
    document.getElementById(myid).style.display = "none";
}

我匆忙制作的,所以它并不完美。

First, don't use snippets built in dreamweaver. They are awful.

Use JavaScript, maybe even JS framework like jQuery. It offers toggle() function for that kind of situations.

In general, you should apply JS function to mouseover of your image. That function shows or hides div (your dropdown). You can achieve that by setting css parameter display: none (hidden) or display: block (visible).

Example for showing div:

<a href="#" onmouseover="show("menu-1")" onmouseout="hide("menu-1")">My menu 1</a>

<div id="menu-1">
    <ul>
        <li>Alcohol</li>
        <li>Spirit</li>
    </ul>
</div>

And some javascript:

function show(myid)
{
    document.getElementById(myid).style.display = "block";
}

function hide(myid)
{
    document.getElementById(myid).style.display = "none";
}

I made that in a hurry so it's not perfect.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文