Remember me

Open overlay section with mouseover

10 months 1 week 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

10 months 1 week ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
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

10 months 1 week 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

10 months 1 week ago #4

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
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

10 months 1 week ago #5

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

nlm1.de/

Overlay Section:



Greets,
Sebastian

10 months 1 week ago #6

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

Best Regards,
Vyacheslav, Balbooa Support Team

10 months 1 week 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

10 months 1 week ago #8

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
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

10 months 1 week ago #9

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

10 months 1 week ago #10

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
You are welcome ;)

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