Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Open overlay section with mouseover

4 weeks 2 days ago #1

  • Sebastian's Avatar
  • Sebastian
  • Posts: 221
Hey guys

it would be nice to have the trigger "mouseover" to open a overlay section B)
Probably small customization, but would be nice :)

Greets,
Sebastian

4 weeks 2 days ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
Hello,
Thank you for contacting us!

This can be done with custom code
There is a sample code in this post, but you need to change the event
support.balbooa.com/forum/gridbox/17779-...ection-on-text#84279

Best Regards,
Vyacheslav, Balbooa Support Team

4 weeks 2 days ago #3

  • Sebastian's Avatar
  • Sebastian
  • Posts: 221
HI Vyacheslav

i've changed the event to mouseover:

jQuery("document").ready(function($){
jQuery('a.my-link').on('mouseover', function(event){
event.preventDefault();
jQuery('#item-15976681080 a').trigger('click');
});
});


How do i get the right item id?


Greets,
Sebastian

4 weeks 2 days ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
This is the id of the button that opens the overlay section (the overlay section plugin must be added to the page)

Best Regards,
Vyacheslav, Balbooa Support Team

4 weeks 2 days ago #5

  • Sebastian's Avatar
  • Sebastian
  • Posts: 221
Doesn't seem to work on my page: :dry:

nlm1.de/

Overlay Section:



Greets,
Sebastian

4 weeks 2 days ago #6

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
You don't have an a element with the my-link class that fires the event

Best Regards,
Vyacheslav, Balbooa Support Team

4 weeks 2 days ago #7

  • Sebastian's Avatar
  • Sebastian
  • Posts: 221
ok.
Sorry for asking again. I'm not really firm into coding.
What would be the correct java-script code for this case?

Greets,
Sebastian

4 weeks 2 days ago #8

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
Use thic code
jQuery("document").ready(function($){
	jQuery('#item-16933837000 a').on('mouseover', function(event){
		event.preventDefault();
		jQuery('#item-16933837000 a').trigger('click');
	});
});

Best Regards,
Vyacheslav, Balbooa Support Team

4 weeks 2 days ago #9

  • Sebastian's Avatar
  • Sebastian
  • Posts: 221
Thank you!! :)

4 weeks 2 days ago #10

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
You are welcome ;)

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum