Olá
mostrando só o ano:
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
document.write(""+year+"")
</script>
- Fórum WMO
- → Viewing Profile: Posts: k9studio
Community Stats
- Group Usuários
- Active Posts 291
- Profile Views 2445
- Member Title k9studio
- Age Age Unknown
- Birthday Birthday Unknown
-
Sexo
Male
-
Interesses
php, mysql, asp
Contact Information
-
Windows Live
netwebx@hotmail.com
1
Neutral
User Tools
Friends
k9studio hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: Script Que Mostra Apenas O Ano Atual (2012)
09/10/2012, 11:14
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)
}
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)
}
- Fórum WMO
- → Viewing Profile: Posts: k9studio
- Privacy Policy
- Regras ·