Jump to content


k9studio

Member Since 24/07/2004
Offline Last Active 18/08/2014, 11:31
**---

Posts I've Made

In Topic: Script Que Mostra Apenas O Ano Atual (2012)

09/10/2012, 11:14

Olá

mostrando só o ano:

<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
document.write(""+year+"")
</script>

In Topic: Função Não Chama No Chrome

28/02/2012, 09:07

Olá Feko,

fiz como indicou mais continua a mesma coisa, no chrome não funciona, versão do chrome 19.0.1054.0 canary

function objetoAjax(){
var xmlhttp=false;
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){
try //Google Chrome
{
var xmlhttp = new window.XMLHttpRequest();
}
catch(e)
{
xmlhttp = false;
}
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function List(id){
divCategorias = document.getElementById('categorias');
ajax=objetoAjax();
ajax.open("GET", "list.php?pag="+id);
divCategorias.innerHTML= '<img src="images/loading.gif">';
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
divCategorias.innerHTML = ajax.responseText
}
}
ajax.send(null)
}

IPB Skin By Virteq