Hey there, I found a post in this forum about a delayed cta button, but I'm not quite sure how to implement it.. :/
Delayed CTA Button - Code help
2
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:
Hope you can help me! Thanks.
Kind regards,
Max
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> Kind regards,
Max
- LeeRobinson
- Shane Messi Banned
Next Topics on Trending Feed
-
2