Closing when Menu behavior: On click
this is how it was working before ! click => open, re-click => closeMaybe there is a way for iPad to set like "iPad: click on the main-menu-link: open/(close), no other action", almooj-craig?
I will come back to this solution because I'm tired with all these problems in ipad.
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
- Montimontt
- Offline Topic Author
- Junior Member
- Posts: 26
- Thanks: 0
Replied by Montimontt on topic Closing when Menu behavior: On click
Posted 11 years 7 months ago #6091
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
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
by Montimontt
Please Log in or Create an account to join the conversation.
- Montimontt
- Offline Topic Author
- Junior Member
- Posts: 26
- Thanks: 0
Replied by Montimontt on topic Closing when Menu behavior: On click
Posted 11 years 7 months ago #6146
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...)
(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);
});
');
}
by Montimontt
Please Log in or Create an account to join the conversation.
look in your js file I have added a test mobile function : isMobile
comment this line :
and use the style onmouseover for your menu
Ced
comment this line :
Code:
navigator.userAgent.match(/iPad/i) ||
Ced
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
- Montimontt
- Offline Topic Author
- Junior Member
- Posts: 26
- Thanks: 0
Replied by Montimontt on topic Closing when Menu behavior: On click
Posted 11 years 7 months ago #6157
I am sorry, but I do not understand what you did? :huh:
Witch js file? comment?
By the way I am using style onmouseover..
Witch js file? comment?
By the way I am using style onmouseover..
by Montimontt
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Time to create page: 0.681 seconds