javascript:void and no link

javascript:void and no link was created by screengrafixx

Posted 12 years 7 months ago #677
Hi there,

I have a rather tricky problem:

when I set menu type to "FJ Related Articles Blog Layout" and in maximenu set rollover style to "on click" then I get a javascript:void and there's no link on "machine" (see screenshot). When I set rollover style to "mousover" everything works ok.

here's a link to my dev site: nagel.kroener-design.de/de/branchenloesungen/automotive

Attachment maximenu.PNG not found




Joomla 1.5.23
Maximenu_CK 4.28
Mootools 1.12

I hope anybody can help ...

thanks in advance
JOACHIM
Last Edit:12 years 7 months ago by screengrafixx
Attachments:
Last edit: 12 years 7 months ago by screengrafixx.

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

Replied by ced1870 on topic Re: javascript:void and no link

Posted 12 years 7 months ago #678
try to change the line 90 in moo_maximenu_CK.js to this (add the condition) :
Code:
if (el.hasClass('parent')) el.getElement('a.maximenuCK').setProperty('href','javascript:void(0)');

Joomlack Webmaster and Developer

Last Edit:12 years 7 months ago by ced1870
Last edit: 12 years 7 months ago by ced1870.

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

Replied by ced1870 on topic Re: javascript:void and no link

Posted 12 years 7 months ago #679
hum, try this instead :
Code:
if (el.hasClass('parent') && el.getElement('a.maximenuCK')) el.getElement('a.maximenuCK').setProperty('href','javascript:void(0)');

I just detected another issue ;)

Joomlack Webmaster and Developer

by ced1870

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

Replied by screengrafixx on topic Re: javascript:void and no link

Posted 12 years 7 months ago #680
Hi,
thanks for your effort. No, didn't work. Still Javascript:void and no link. Did I make changes correct?


} else if (style == 'click') {

el.getElement('span.titreCK').addEvent('click',function() {

if (el.hasClass('parent') && el.getElement('a.maximenuCK')) el.getElement('a.maximenuCK').setProperty('href','javascript:void(0)');

if (testoverflow == '1') this.testOverflowMaxiCK(menuID);
if (el.status == 'show') {
el.hideMaxiCK();
} else {

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

Replied by ced1870 on topic Re: javascript:void and no link

Posted 12 years 7 months ago #681
ok, so for the last parent "zylinderbohrung" try to set it as an external link that points to # instead of a separator

Joomlack Webmaster and Developer

by ced1870

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

Replied by screengrafixx on topic Re: javascript:void and no link

Posted 12 years 7 months ago #682
That's it. Thanks for your effort!

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

Time to create page: 0.655 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 416 guests and 2 members online