object expected

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bozobobby
Beginner
Beginner
Posts: 2
Joined: Tue Sep 02, 2003 2:57 pm
Location: Arlington, Mass.
Contact:

object expected

Post by bozobobby »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Actually the scriptpath is not correct. You have...

Code: Select all

scriptpath="/http://www.town.arlington.ma.us/js/menu_sample1/";
That leading / is the bugger.

You can actually use...

Code: Select all

scriptpath="/js/menu_sample1/";
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Also, in your menu_data.js, you have the following at the beginning...

Code: Select all

_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: Select all

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.
John
Post Reply