Closing when Menu behavior: On click

More
14 years 1 month ago #6035 by ced1870

Maybe there is a way for iPad to set like "iPad: click on the main-menu-link: open/(close), no other action", almooj-craig?

this is how it was working before ! click => open, re-click => close
I will come back to this solution because I'm tired with all these problems in ipad.

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #6091 by Montimontt
I know I shouldn't bother you any more, but I have a last question/request:

Is it possible (and if, how does it work), ONLY FOR IPAD: to disable the menu to open on click?
click => not open menu, but load link

Thanks!
Montimontt

Please Log in or Create an account to join the conversation.

More
14 years 4 weeks ago #6146 by Montimontt
I tried the following with code I found (google :) ) in moomaximenuck.js, but it is not working:

(you would do me a big favour if you could help me this last time...)
Code:
function checkBrowserName(name){ var agent = navigator.userAgent.toLowerCase(); if (agent.indexOf(name.toLowerCase())>-1) { return true; } return false; } if(checkBrowserName('iPad')){ alert(''); } else{ alert(' el.addEvent('mouseover',function() { if (testoverflow == '1') this.testOverflowMaxiCK(menuID); el.setStyle('z-index',15000); this.showMaxiCK(dureein); }); el.addEvent('mouseleave',function() { el.setStyle('z-index',12001); this.hideMaxiCK(dureeout); }); '); }

Please Log in or Create an account to join the conversation.

More
14 years 4 weeks ago #6154 by ced1870
look in your js file I have added a test mobile function : isMobile
comment this line :
Code:
navigator.userAgent.match(/iPad/i) ||
and use the style onmouseover for your menu
Ced

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
14 years 4 weeks ago #6157 by Montimontt
I am sorry, but I do not understand what you did? :huh:

Witch js file? comment?

By the way I am using style onmouseover..

Please Log in or Create an account to join the conversation.

More
14 years 4 weeks ago #6158 by ced1870
the file moomaximenuck.js file in the assets folder

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.219 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4309 guests and no members online