why does this javascript not work in max?

Feb 22, 2010 at 1:20am

why does this javascript not work in max?

Dear users,

I have copied a javascript and loaded in the object [jsui].
However, it does not work.
What is the reason?

Sincerely,
prko

var newDefs = new Object;
newDefs.overimg = ‘arrow.gif’;
flyDefs (newDefs);
makeLayer (
“menu1″,
“First title=#”,
“Item 1=#”,
“Item 2=#>menu2a”,
“Item 2 submenu=#”,
“Subitem 1=#”,
“Subitem 2=#”,
“Subitem 3=#>menu2a3″,
“Subitem 3 submenu=#”,
“Sub Subitem 1=#”,
“Sub Subitem 2=#”,

“Subitem 4=#”,

“Item 3=#”,
“Item 4=#>menu4a”,
“Item 4 submenu=#”,
“Subitem 1=#”,
“subitem 2=#”,

);

#48622
Feb 22, 2010 at 1:33am

It looks like it might be part of a dropdown menu css script which is extremely unlikely to work in max, especially as most of the code isn’t there in the first place. I did look into writing a script for [jsui] but my attention span is short so the project was shelved. It would be quite useful though so I might have another go at piecing something together.

lh

#174830
Feb 22, 2010 at 1:56am

I want to have a submenu function in MAX.
I have an algorithm just by using built-in max objects.
It is, however, very clumsy.
I think, we can have such thing in javascript easily.
I attach my patch for submenu in MAX.

best,
prko

– Pasted Max Patch, click to expand. –
#174831
Feb 22, 2010 at 2:08am

No need to re-post. As I mentioned: I shall look into writing something in javascript because it would be useful and a fun challenge. No promises though, and I am not in any great hurry. I’ll let you know if I come up with anything that works.

lh

#174832
Feb 22, 2010 at 2:17am

thanks!

#174833

You must be logged in to reply to this topic.