Skip to main content
Participant
August 31, 2017
Question

Animate cc - Need Help on a button

  • August 31, 2017
  • 1 reply
  • 564 views

I'm working on banner and I need to add a "close button" and a "auto-close" at the end of banner.

The code i tried to use doesn't work :

if(!this.bton_Fermer_click_cbk) {

function bton_Fermer_click(evt) {

// Début de votre code personnalisé

console.log("Button clicked");

OA.close('bt');   <--- This part was added by me based on client specs

// Fin de votre code personnalisé

}

$("#dom_overlay_container").on("click", "#bton_Fermer", bton_Fermer_click.bind(this));

this.bton_Fermer_click_cbk = true;

}

I also need to add "OA.close('bt');" on the last frame of my timeline.

Thanks for your help

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 31, 2017

what are you trying to close?

if it's the html page/browser window you're trying to close, that's only possible if the window was opened via javascript and you use the window close() method.

Participant
August 31, 2017

Hi,

I'm trying to close an expand banner. It begins with a 630x250 banner for 10sec. After the 10 sec. or after pushing the close button, a smaller banner (250x300) appears.

The "OA.close('bt');" button and the "OA.close('auto');" are given in the technical specifications by the Advertising agency. My problem is how and where should i put those instructions.

Thanks for your help and sorry for my poor english level

kglad
Community Expert
Community Expert
August 31, 2017

What do you mean by "it begins"?

do you use ha to "begin"!