0

I'm new to Javascript and jQuery, but I'm learning. Here is what I'd like to accomplish:

I have a row of navigation "pull-down" tabs that I'd like to animate. Some sliders will have text links to sub-pages and some will not. The bottom portion of the tab should be clickable to go to the main page. Then the sub-page, text links should also be clickable.

Here is a graphic example that should make sense of what I'd like to do: http://lionheart.net/downloads/nav-example.png

Mouse over, would slide it down. Mouse out, after a second, should auto-slide up.

I would prefer to have it be a div sliding up and down.

Is this possible with jQuery or something else? Thanks so much for any help you can give me!

4

3 回答 3

0

It is working fine on jquery itself. If you are using jquery i think you may have problem of assigning jquery with id. If you are using id, it worked only one page.

Please use the class in jquery for using all pages. Instead of # using in ID, use . in class.

于 2010-04-17T15:58:20.280 回答
0

由于您没有 jQuery 或 JS 经验,我建议您从 Google 开始(例如使用此查询)。您会发现很多热门歌曲(尝试第一个),其中包含大量动态菜单,包括现场演示和教程。

选择一个在视觉和特征方面看起来都差不多的,然后按照相应的tute。如果您有问题,请返回 SO 并提出更具体的问题。

于 2011-06-18T23:54:18.690 回答
0

如果你不需要动画,你可以只用 CSS 做下拉菜单,如果浏览器不支持,它们甚至会降级为简单的嵌套列表。一个例子是http://www.designmeme.com/tutorials/csspulldownmenus/。如果您有兴趣,我可以发布我使用的 CSS 和 HTML;只需在下面发表评论。

于 2011-06-18T23:58:33.560 回答