Hello Devs, I am currently building a VSL upsell flow and I’d like to have the section below popup at a specific playing time to be able to reveal the product and the price at the same time I will do it on the VSL. Do you guys think you can help me out with this? thanks in advance.
Hey! @edobecu ![]()
Yes, you can do that with a bit of JavaScript.
You can listen to the video’s play time and then show the section when it reaches your desired time.
Something like this:
const video = document.querySelector("video");
const section = document.querySelector(".your-section");
video.addEventListener("timeupdate", () => {
if (video.currentTime >= 120) { // show after 2 minutes
section.style.display = "block";
}
});
Just replace .your-section with your section’s class and adjust the time (in seconds).
It’s a simple way to make your offer appear right when you want during the VSL.
Thank You for Your response. I was testing this code but it looks like it’s not working. Should it be pasted in the page custom codes or it only works with a custom HTML block?
Hey @edobecu, glad you tried that out!
Yes, it should work in both ways — you can place the code inside a Custom HTML block or in the Page Custom Code (footer section).
If it’s not working, there might be a small issue with the selector or how the video element is loading.
Can you please share the page URL here (or DM it)? That’ll help me check what’s going wrong and guide you better.
yLepmtxJFMlV. myfunnelish. com /VSLTEST
this is the URL page. the code was added to the body HTML section in custom codes.
I didn’t specify, the section i’m testing to make pup up is the “hello everyone”.
Also, I attached a link with spaces in between of it because it didn’t let me post it normal
Hey @edobecu, thanks for sharing the details!
The reason it’s not working is because custom scripts on Funnelish only work with custom domains.
If you’re testing it on the default Funnelish link, the script won’t run properly.
Try connecting your custom domain first and then test again — it should start working fine.