Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

Problem with Oscommerce shop


Poster: Frank Bemelman
Dated: Tuesday February 12 2008 - 10:05:57 GMT

Hi to all!

Yesterday evening I installed a new menu in my web shop at http://www.videofrank.nl

Two problems...

1) I had a javascript that automatically enlarges a picture, when viewing a product description and moving
the mouse over the picture. This has stopped working. Why is that?

2) I put a number in front of the categorie description. To align the text, I put a table in each menu entry, first cell contains a number and the second cell contains the menu text. I made the table transparent, so that the background color changes as you move over the menu. But before I put that table in, the text would invert from black to white (which is nice) but now stays black all the time. How can I make these tables inheret all the properties as set by $mmstyle parameters?

Thanks for any hints and ideas!

Best wishes, Frank

Re: Problem with Oscommerce shop


Poster: John
Dated: Tuesday February 12 2008 - 14:34:49 GMT

Hi Frank,

I see a few problems, some with the menu, and some with other scripts you are using...

1. From Google Analytics - "Copy the following code block into every webpage you want to track immediately before the </body> tag.". You have that code in the <head>.

2. The </head> tag is missing.

3. The tooltip code you are using states the following - "/* IMPORTANT: Put script after tooltip div or put tooltip div just before </BODY>. */". I don't see either of those instructions being followed.

4. The menu is not set up properly for use in a table cell. See this page for instructions.

5. Typically we like to see the menu calls as the first item after the <body> tag.

If you are not supporting NS4 any more (who is?), you can use the new menu calls...
Code:
<script type="text/javascript" src="/catalog/milonic/milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<script type="text/javascript" src="/catalog/milonic/mmenudom.js"></script>

Not trying to be a snot here, but some things just don't play nice when not put in their proper place.

Re: Problem with Oscommerce shop


Poster: Frank Bemelman
Dated: Tuesday February 12 2008 - 20:11:23 GMT

Hi John,

Thanks for the comments on the google code. I corrected that.
The #div for the tooltip has also been added, makes no difference.

I used the Milonic package with the provided files for Oscommerce that I also found here.
These files load the menu from the shop's database. Installation was easy, I only had to
make a very small change, to load the menu box with "Milonic data". I have no idea how
to follow those table rules on the page you pointed me to.

The only change I made to oscommerce file (categories.php) was commenting out one line and
add a new one, according to the instructions in the downloaded package. And I commented out.
the link to milonic.com (which is okay I think, as I paid for a licence ;-))

//new infoBox($info_box_contents);
//echo "<a style='font-family:verdana;font-size:10px;' href='http://www.milonic.com/'>DHTML Menu by Milonic JavaScript</a>";
require_once(DIR_FS_CATALOG.'/milonic/oscommerce-menu.php');

If I change it back, my tooltip works just fine.

I really liked my tooltip that enlarges the images on the fly. Might there be any fundamental reason that these
two pieces of software can't work together in one page?

Frank

Re: Problem with Oscommerce shop


Poster: Frank Bemelman
Dated: Tuesday February 12 2008 - 21:45:42 GMT

Ok, things are working again. I downloaded/installed the latest tooltip version and now both Milonic menu and the tooltip work happily together.

As usually, (speaking for myself!!!) it takes more stubborness than actual knowledge ;-)

Time for a beer.

Best wishes, Frank

Re: Problem with Oscommerce shop


Poster: John
Dated: Wednesday February 13 2008 - 17:29:26 GMT

Sorry - my fault for not checking that (I usually do).

Glad to hear it's working!