var tag = document.createElement(“script”);
tag.src = “https://www.youtube.com/iframe_api”;
var firstScriptTag = document.getElementsByTagName(“script”)[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player(“td_youtube_player”, {
height: “720”,
width: “960”,
events: {
“onReady”: onPlayerReady
}
});
}
function onPlayerReady(event) {
player.setPlaybackQuality(“hd720”);
}
These commercials were deemed too offensive for mainstream consumption. What do you think? The first one is my personal favorite. I’ve had that same fantasy at the drugstore.
Leave a Reply