Delayed CTA Button - Code help

1 replies
Hey there,

I found a post in this forum about a delayed cta button, but I'm not quite sure how to implement it.. :/

I'm using DIVI (Theme & Page Builder) and would like to have a CTA Button on a specific time of a video.

Here's the code:
Code:
STEP ONE:

Paste the following code just before the closing
</head> tag in your web page.


<!-- START PASTE HERE -->

<script type="text/javascript">
<!--

////////////////////////////////////////////
// CHANGE THE SECONDS DELAY BELOW TO //
// THE NUMBER OF SECONDS YOU WANT BEFORE //
// THE LINKS APPEAR //
////////////////////////////////////////////


$secondsdelay = 90;

////////////////////////////////////////////
// DO NOT EDIT THIS SECTION //
////////////////////////////////////////////


function unhide(divID) {
var item = document.getElementById(divID);
if (item) {
item.className=(item.className=='hidden')?'unhidde n':'hidden';
}
}


$delay = $secondsdelay*1000;

window.setTimeout("unhide('links')",$delay);

//--></script>

<STYLE TYPE="text/css">
.hidden { visibility: hidden; }
.unhidden { visibility: visible; } 
</STYLE>


<!-- END PASTE HERE -->


STEP TWO:

Paste this just BEFORE the link or form you want to
"magically" appear:


<div id="links" class="hidden">



STEP THREE:

Paste this just AFTER the link or form you want to 
"magically" appear:

</div>
Hope you can help me! Thanks.

Kind regards,
Max
#button #code #cta #delayed
  • Profile picture of the author LeeRobinson
    Thats an Issue,

    Im not totally sure what you are running into but when you do get it fixed this article might really help you out. It did a lot for me and I just wanted to pass it along!!

    Check it out when you have a few minutes and I hope its worth as much to you as it was to me!

    http://neilpatel.com/2015/11/15/clic...ttons-clicked/

    Good Luck, Max
    {{ DiscussionBoard.errors[10941208].message }}

Trending Topics