// JavaScript Document function getXMLHttpRequest() { var Versiones = [ "MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp","Microsoft.XMLHttp"]; var aVersions = [ "MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp","Microsoft.XMLHttp"]; if (window.XMLHttpRequest){ return new XMLHttpRequest(); } else if(window.ActiveXObject){ for(var i = 0; i < aVersions.length; i++){ try{ var oXmlHttp = new ActiveXObject(aVersions[i]); return oXmlHttp; } catch(error){ } } } } function paginaPublic(pag) { var xmlhttp = getXMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { document.getElementById("listaPublic").innerHTML = xmlhttp.responseText; $(".btVideo").mouseenter(function(){ $(".backImagen", this).fadeTo("fast",.8); $(".titleImagen", this).fadeTo("fast",1); //$(".titleImagen", this).animate({ // marginTop: "-110px" //}, 250, function() { // Animation complete. //}); }); $(".btVideo").mouseleave(function(){ $(".backImagen", this).fadeTo("fast",0); $(".titleImagen", this).fadeTo("fast",0); //$(".titleImagen", this).animate({ // marginTop: "-120px" //}, 250, function() { // Animation complete. //}); }); } } xmlhttp.open("POST", "http://www.40fakes.com/wp-content/themes/Qwilm!/paginaPublic.php", true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send("pagActual="+pag); } function controlFeed() { form = document.fPublic; if((form.nombre.value != "")&&(form.email.value != "")&&(form.titulo.value != "")&&(form.archivo.value != "")&&(form.enlace.value != "")) { form.submit(); } } var actHeightLista = 0; function publish() { toHeight = document.getElementById("listaPublic").clientHeight; actHeight = document.getElementById("formulario").clientHeight; if(toHeight == 0) { toHeight = document.getElementById("listaPublic").offsetHeight; actHeight = document.getElementById("formulario").offsetHeight; } actHeightLista = toHeight; minHeight = 461; if(toHeight > minHeight) { open_height = toHeight+"px"; $("#formulario").animate({"height": open_height}, {duration: "fast" }); } if(toHeight < minHeight) { open_height = minHeight+"px"; $("#formulario").animate({"height": open_height}, {duration: "fast" }); $("#listaPublic").animate({"height": open_height}, {duration: "fast" }); } } function closePublish() { open_height = actHeightLista+"px"; $("#formulario").animate({"height": "0px"}, {duration: "fast" }); $("#listaPublic").animate({"height": open_height}, {duration: "fast" }); } function ismaxlength(obj) { var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" if (obj.getAttribute && obj.value.length>mlength) obj.value=obj.value.substring(0,mlength) } function getInfoHighlights(ide) { var xmlhttp = getXMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { alert(xmlhttp.responseText); //setInfoHighlights(xmlhttp.responseText); //document.f1.nombre.disabled = false; //document.f1.url.disabled = false; //document.f1.img.disabled = false; } } xmlhttp.open("POST", "ad-highlights-get.php", true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send("IdHigh="+ide); } function setInfoHighlights(valor) { alert(valor); //var arr = valor.split('|'); //document.f1.ide.value = arr[0]; //document.f1.nombre.value = arr[1]; //document.f1.url.value = arr[2]; //document.f1.img.value = arr[3]; } function changeFoto(basename,stado,ext,urele,realname) { var nameIMG = basename; if(realname) { nameIMG = realname; } //alert(document.images[nameIMG].src + "--" + urele+"/"+basename+stado+"."+ext) document.images[nameIMG].src = urele+"/"+basename+stado+"."+ext; }