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:13

object expected


Poster: bozobobby
Dated: Monday September 8 2003 - 21:31:53 BST

I am successfully using the v. 3 Milonic menu at http://www.town.arlington.ma.us/

I am testing conversion to v.5, and I can't get it to display. The test file is http://www.town.arlington.ma.us/topnews1.php

Instead of displaying the menu, the page generates this error message:

Line 29
Char 1753
Error: object expected
URL: http://www.town.arlington.ma.us/topnews1.php

I assume the error refers to something in
http://www.town.arlington.ma.us/js/menu ... nic_src.js
but what object is expected?

Fee free to look in http://www.town.arlington.ma.us/js/menu_sample1/

menu_data.js is built from a v.3 conversion. The scriptpath correct.

Thanks for any advice.

Bob Sprague


Poster: John
Dated: Monday September 8 2003 - 22:29:39 BST

Actually the scriptpath is not correct. You have...
Code:
scriptpath="/http://www.town.arlington.ma.us/js/menu_sample1/";

That leading / is the bugger.

You can actually use...
Code:
scriptpath="/js/menu_sample1/";


Poster: John
Dated: Monday September 8 2003 - 22:37:48 BST

Also, in your menu_data.js, you have the following at the beginning...
Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=10;
_subOffsetLeft=5;

...and you have it again at the end, with slightly different values.

In addition, you have drawMenus(); twice.

And...
Code:
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect="Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
effect="Shadow(color='#777777', Direction=135, Strength=5)"
}

...looks like it came out of v3.