Open Promotion with Mouse Over on Tab
In this Justuno support article, we will cover the custom code needed to fire a promotion when you mouse over/hover the promotion's tab.
Last updated 06/08/2022
If you add this to the custom code section the overlay will open when you hover over the tab without a click. Please see How to Add Custom Code to Justuno for more detailed instructions on using custom code.
Place the following code on the Tab JS of the promotion:
jju(document).on('mouseenter','#ju_bbox',function(){
event.preventDefault();
event.stopPropagation();
ju_tabClick();
})
For the promotion to fire when the text on the tab is hovered use the code below to the Tab JS:
jju('.ju_tab_text').on('mouseenter',function(){
ju_loadiframe();
});
Visit Justuno @justuno.com