   [web] JS to play a video file after the other
  something like on the yahoo news, or like on cnet.comit'll show an advertisement -> a news report -> another advertisement -> another news report -> continue until the list of news reports run out.is there a &#106avascript to get this done?if there isn't, I guess I would have to build one myself that goes like something like this:function playVideo(){var ad=true;if( ad == true ){getElementById('main_video').src=getRandomAd(); // make another function getRandomAd that fetches a random adgetElementById('main_video').play=true; // I'm sure this is the wrong names but i'm sure it'll be something similar to thisad=false;}else{getElementById('main_video').src=getNextOnList();getElementById('main_video').play=true;ad=true;}}function isVideoDone(){if( getElementbyId('main_video').stop==true ){playVideo();}}HTML section.embed id='main_video' loop='1'Thanks for the comments   