
Want to show a Div on specific time for a specific duration
I setted up the jwplayer on an html page.
I would like to Show a div when the video is at 10 sec and untill it reaches 50 sec.
i try
jwplayer('video_background').onTime(function(){ var position = jwplayer('video_background').getPosition(20);
if (position >=20) {
document.getElementById('slide') (function {
(slide.style.display == 'none' || slide.style.display = '')
? slide.style.display = 'block'
: slide.style.display = 'none';
}, false);
};
});
what am i doing wrong?