Server IP : 184.154.167.98 / Your IP : 18.222.167.85 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/pagina/ |
Upload File : |
(function ( $ ) { $.fn.splash = function(options) { var settings = $.extend({ // These are the defaults. video: "", html: "", imagen: "", link: "", ancho: "500px", alto: "400px", bgcolor: "rgba(0,0,0,0.8)" }, options ); var x = document.createElement("div"); x.setAttribute("class","splash"); x.style.backgroundColor = settings.bgcolor; x.id="splash"; var a = document.createElement("a"); a.href = "#"; a.setAttribute("class","linkSplash"); a.innerHTML = "[X CERRAR]"; a.onclick = function(){ $(x).fadeOut(); }; var d = document.createElement("div"); d.innerHTML = "Prueba"; d.style.paddingTop = "10px"; if((settings.video!="" && settings.html!="") || (settings.video!="" && settings.imagen!="") || (settings.html!="" && settings.imagen!="")){ d.innerHTML = "No se pudo cargar ningun contenido"; }else{ if(settings.video!=""){ d.innerHTML = '<iframe width="'+settings.ancho+'" height="'+settings.alto+'" src="http://www.youtube.com/embed/'+settings.video+'" frameborder="0" allowfullscreen></iframe>'; }else if(settings.imagen!=""){ if(settings.link!=""){ d.innerHTML = '<a href="#" onclick="parent.location = \''+settings.link+'\'; return false;"><img width="'+settings.ancho+'" height="'+settings.alto+'" src="'+settings.imagen+'"></a>'; }else{ d.innerHTML = '<img width="'+settings.ancho+'" height="'+settings.alto+'" src="'+settings.imagen+'">'; } }else if(settings.html!=""){ d.innerHTML = '<iframe width="'+settings.ancho+'" height="'+settings.alto+'" src="'+settings.html+'" frameborder="0" allowfullscreen></iframe>'; } } var y = document.createElement("div"); y.setAttribute("class","innerSplash"); y.style.width = parseInt(settings.ancho) + "px"; y.style.height = (parseInt(settings.alto) + 20) + "px"; y.style.marginLeft = ((parseInt(settings.ancho) / 2 ) * -1) + "px"; y.style.marginTop = ((parseInt(settings.alto) / 2 ) * -1) + "px"; y.appendChild(a); y.appendChild(d); x.appendChild(y); document.body.appendChild(x); $(x).fadeIn(); }; }( jQuery ));