Hi,
What's the syntax for calling a submenu group from a static parent link, rather than one that's generated by JavaScript?
Thanks!
Scott
Are menu calls from a static link possible?
Are menu calls from a static link possible?
Thanks,
Scott
Scott
Re: Are menu calls from a static link possible?
Submenus are called from within the aI statement as follows...
You would then set up the code for the sub called, in this case, menuName.
If this is not what you're after, I don't understand the question.
Code: Select all
aI("text=whatever;showmenu=menuName;... etc.
If this is not what you're after, I don't understand the question.
John
Re: Are menu calls from a static link possible?
Hi John,
Here's a better example:
I don't want to write the parent links like the one above using JavaScript. This is actually to be used to make a JavaScript call from Flash, which is natively supported in Flash 8. Does that make sense?
Here's a better example:
Code: Select all
<A href="#" onMouseOver="[function call to milonic menu]">My static link</A>
Thanks,
Scott
Scott
Re: Are menu calls from a static link possible?
Are you saying you don't want to use a link like the one you posted? That's the only way I know how to call a menu from a static link. Try this page and look down at the popup function http://milonic.com/menu_methods.php and here is a sample of that type of menu
http://milonic.com/menusample24.php
That sample actually places the menu based on an image, but as you can see from the methods and functions page you can place it just using 1 which will put it where the mouse x y coordinates are.
I hope this is what you mean, otherwise, I'm with John and don't know what it is you are asking.
Ruth
http://milonic.com/menusample24.php
That sample actually places the menu based on an image, but as you can see from the methods and functions page you can place it just using 1 which will put it where the mouse x y coordinates are.
I hope this is what you mean, otherwise, I'm with John and don't know what it is you are asking.
Ruth
Re: Are menu calls from a static link possible?
Hi Ruth,
Thanks -- the list of methods helped get an understanding of what's possible, though my example below doesn't call up one of my menus named "Sub1":
I'm displaying it on a page that has loaded all of the JS code and menu item data, so I'm not sure what could be the problem. Any thoughts?
Thanks,
Scott
Thanks -- the list of methods helped get an understanding of what's possible, though my example below doesn't call up one of my menus named "Sub1":
Code: Select all
<A href="#" onMouseOver="menuDisplay(gmobj('Sub1'),1)" onMouseOut="menuDisplay(gmobj('Sub1'),0)">My menu link</A>
Thanks,
Scott
Thanks,
Scott
Scott
Re: Are menu calls from a static link possible?
Uh, I have no idea what that is you posted. There is one called popup that is on that page. It doesn't have anything like gmobj in it.
You can position the menu by mouse coordinates, either using just the menu name or using 1. I think probably you should use the 1 for it. Not sure if it will work in all browsers without the 1.
You could position it based on top and left in the menu itself which would be top and left relative to the page top and left. The call would be without the second parameter and below the code example is how the menu would be coded
You can position it based on an image which you have given a name and id so the call would have the menu name followed by the image name
You can position it based on an image as above but add parameters for fine tuning it from that image's bottom left position. So let's say you wanted it to open at the bottom left of your image, but wanted to shift it a bit farther down and more to the left, you'd add
Hope this helps. http://milonic.com/menu_methods.php Go down the page to the POP FUNCTION explanation.
Ruth
Code: Select all
<a href=# onmouseover="popup(sub1',1)" onmouseout=popdown()>
You could position it based on top and left in the menu itself which would be top and left relative to the page top and left. The call would be without the second parameter and below the code example is how the menu would be coded
Code: Select all
<a href=# onmouseover="popup(sub1')" onmouseout=popdown()>
Code: Select all
with(milonic=new menuname("Milonic")){
style=menuStyle;
top=262;
left=166;
Code: Select all
<img src=transparent.gif border=1 name=milmenu id=milmenu>
<a href=#
onmouseover="popup('sub1','milmenu')" onmouseout=popdown()><font size=3 color=green>Milonic</font></a>
Code: Select all
("sub1","milmenu",10,-10);
Ruth
Re: Are menu calls from a static link possible?
I just used the example in one of the links you sent, but this worked perfectly:
Thanks again!
Scott
Code: Select all
<a href=# onmouseover="popup('Sub1')" onmouseout=popdown()>Test</a>
Scott
Thanks,
Scott
Scott