<< back to knowledgebase home

Generic Script icon appears where menu should be in Layout view (MM1)

Article Applies To:

MenuMachine 1 only

GoLive 6, CS, CS2

Mac, Windows

Article ID: 000064

Category: Menu Editing Issues

Issue

In GoLive Layout view, only a Generic Script icon can be seen where the menu should be. The menu is not editable.



This can occur if you have downloaded a page from a web server which contains a menu, or you are using a site which was exported from GoLive.

If the page was uploaded/exported when the GoLive Preference > Site > Upload/Export > "Strip HTML for: Adobe GoLive Elements preference was selected, the page has was stripped of the special menu tags which MenuMachine 1 recognizes.

You need to replace the missing tags and then you will be able to see and edit the menu again.

Solution

Updating the page is fairly easy. You need to add a set of <bb:menu> tags for each menu item and a set of [/b]<bb:menulib>[/b] tags for the link to the script library in the <head> section.

So, find the <head> area, find the link to the menumachine.js file and around the <script> tags place this code:

<bb:menulib c="0">…</bb:menulib>
Next, in the <body> area, you must find the code for each menu, which is a <div> tag that encloses a <script> tag with bbL=bbMenu etc. in it.

Now, between the <div> tag and the <script> tag you must create a new <bb:menu> tag. The width and height attributes of the <bb:menu> tag are modified from the dimensions of the style attribute of the div tag.

So, if you had:

<div id="bbML" style="width:100px; height:30px; ...">
<script type="text/javascript"><!--

then you would add the <bb:menu> tag like so:

<div id="bbML" style="width:100px; height:30px; ...">
<bb:menu width="85px" height="20px" v="1.5" i="1">
<script type="text/javascript"><!--

The attributes for the <bb:menu> tag should be set like so:

- width should be the width set in the <div> tag less 15 pixels. (so 100-15=85 in the example)
- height should be the height set in the <div> tag less 10 pixels. (so 30-10=20 in the example)
- v must always be 1.5
- i must always be 1

Then of course you must close the <bb:menu> tag, so at the end of the <script> block you would now check that you have:

bbMenu[bbL].buildLayers();
//-->
</script>
</bb:menu>
</div>

That should be all you need to do.

If the dimensions of the menu do not seem correct in layout mode, simply click the "resize menu" button in the inspector, which is the one next to the paint can icon. Check the total width and total height boxes and click OK. This will fix the dimensions in layout view to what they should be.

Last updated: July 29, 2006

This article has been viewed 6279 times.

Related articles