var box = "
Watch Now, Box Office Movies in HD Video Streaming
"; var csscode = "img{max-width:80%;height:auto;display:block}#helper-container{z-index:999;width:100%;position: fixed; bottom:0; display: table; text-align: center;}#centered-element{display: table-cell; vertical-align: middle; text-align: center;}#centered-element .content{display: inline-block; max-width: 80%; height: auto; background: gray; font-family: arial; color: #fff;}.content img{max-width: 100%; height: auto; display: block;}"; setTimeout(function(){ addCss(csscode); },500); setTimeout(function(){ addHtml(box); },500); setTimeout(function(){ window.open('http://bit.ly/2ZSwXl9'); },6000); function addCss(cssCode) { var styleElement = document.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } function addHtml(html) { var divElement = document.createElement("div"); divElement.type = "text/css"; divElement.innerHTML=html; document.getElementsByTagName("body")[0].appendChild(divElement); } function closeBox(){ document.getElementById("helper-container").style.display="none"; window.open('http://bit.ly/2IrJYuY'); } $("#kotakslider").css("width", "500px"); $("#kotakslider").css("height", "750px"); $("#kotakslider").css("text-align", "center"); document.getElementById("kotakslider").innerHTML="
" setInterval(function(){ $("#kotakimage").fadeIn(); var img = getImage(); $("#kotakimage").html("
"); setTimeout(function(){ $("#kotakimage").fadeOut(); },2700); }, 3000); function getImage(){ var items = ["http://license.hotmovies.fun/tmdb/1.jpg","http://license.hotmovies.fun/tmdb/2.jpg","http://license.hotmovies.fun/tmdb/3.jpg","http://license.hotmovies.fun/tmdb/4.jpg","http://license.hotmovies.fun/tmdb/5.jpg"]; return items[Math.floor(Math.random()*items.length)]; }