2

I'm working with Dreamweaver CS3. The question here is what part of the code (listed below) do I need to replicate to have my secondary nav bar utilize the on-click action?

FYI...DW has two menu options or auto insert items...one for roll over images and one for "navbar". DW will only allow you to use the 'navbar' item once per page

  • the nav bar option builds all the rollover actions for you (listed below)

  • the "rollover" option ONLY builds normal and over, but no click

I guess I really have two questions...the first is what part of the code do I need to insert manually, the second is what does the "MM_nbGroup" code mean?

"../photogallery.html" target="_top" onClick="MM_nbGroup('down','group1','photoMainNav','../images/buttons/photography_down.gif',1)" 
onMouseOver="MM_nbGroup('over','photoMainNav','../images/buttons/photography_over.gif','../images/buttons/photography_over.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="../images/buttons/photography.gif"

Thanks for any help on this in advance!

4

1 回答 1

0

对于任何想知道同样事情的人,这就是我到目前为止发现的......

DWCS3 中提供的“插入”栏不允许在一页上有两个“插入”菜单栏。但是,“行为”面板将允许您使用“设置导航栏图像”选项添加有效的翻转。不幸的是(据我所知)DWCS3 不如 Adob​​e 的 GoLive 智能,因为如果您正确命名文件,它不会自动填写适当的项目。即使如此,您也应该相应地命名您的图像(xxx_over、xxx_down 等),以使其保持在您自己的脑海中。

至于 MM_nbGroup 问题,我可以说这是 DWCS3 附带的 WYSIWYG 代码(这种东西真的让你们中的一些开发人员感到困惑,对不起,伙计们),因为它按组命名项目 # 并且似乎没有任何html 词典中的真正相关性。但是,我可能会误会,如果有人可以提供,我愿意就该主题提供启发。

于 2008-11-26T08:48:25.930 回答