I’m trying to set up a promotional homepage lightbox that my clients can easily change the content of by connecting it to a dataset. For some reason, my connected video is not loading on the site.
The thing is, I want them to be able to choose whether the popup displays a photo or a video, since this is for their seasonal promotions. So I’ve written some code to show or hide the photo, but none of it is working (except the image staying hidden).
Here’s my code:
$w.onReady(function () {
$w("#videoPlayer1").play();
});
if ( $w("#videoPlayer1").isPlaying ) {
$w("#image11").hide();
}
else { ( $w("#image11").show() );
}
Here’s what my lightbox looks like:
All help is greatly appreciated!