Page 1 of 1

overlaymenu

Posted: Tue Jan 18, 2022 3:36 pm
by DWG
Pablo ,
it appears to me that the overlaymenu object does not work with events
is this correct ??? and how to solve
created an empty page with only one overlay menu with javascript event alert('enter your message');
result below :
<li><a role="menuitem" href="#" class="master_page_layersOverlayMenu1-effect">WIG_color</a></li>
it must appear appear inside the href= , manual adding it with notepad++ it works
<li><a role="menuitem" href="javascript:alert('enter your message');" class="master_page_layersOverlayMenu1-effect">WIG_color</a></li>


Best Regards ,
De Wolf Georges

Re: overlaymenu

Posted: Tue Jan 18, 2022 3:56 pm
by Pablo
It seems to work for me.

Note that the link cannot be empty otherwise no events will be added.
If you want to use the 'dummy' link then add '#' in the URL file or link to the same page.

Also, menu items with sub menus cannot be a link.

Re: overlaymenu

Posted: Fri Jan 21, 2022 12:07 pm
by DWG
Pablo ,
meanwhile found an solution to fix this , created a javascript that JAV_show , JAV_hide and this works for me
<li><a role="menuitem" href="javascript:JAV_show('WIG_change_color','slideleft',2500);" title="WIG_change_color"
thanks for the reply

if you are interested or somebody else , i'am working with php + javascript and i can create an caroussel , menu , login,logout , reuse objects
that can be changed dynamicly PHP8 , W17
Regards ,
Georges

Re: overlaymenu

Posted: Fri Jan 21, 2022 4:26 pm
by BaconFries
if you are interested or somebody else , i'am working with php + javascript and i can create an caroussel , menu , login,logout , reuse objects
that can be changed dynamicly PHP8 , W17
Thanks for the offer maybe make a 'New' post at the following url offering this as a tip etc etc

viewforum.php?f=26