He encontrado esto a ver si rula:
[PHP]
$navidad = ('25/12/2004');
$navi = date('d/m/Y');
if($navidad == $navi){ echo"Hoy es navidad a hacerse pajorros!!!!xD";
}else{ echo "Tonto hoy es $navi,aun falta pa navidad";
}
?>
[/PHP]
EDITO: no se no me rula quizá esté mal hecho o mal puesto, dejo el original.
$navidad = ('25/12/2004');
$navi = date('d/m/Y');
if($navidad == $navi){
echo"Hoy es navidad a hacerse pajorros!!!!xD";
}else{
echo "Tonto hoy es $navi,aun falta pa navidad";
}
?>
____________________________________________
He encontrado este otro:
çfunction setcountdown(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURA AQUÍ EL SCRIPT//////////////////
file://Paso 1: Configura el contador, año, mes, día:
setcountdown(2003,12,17)
file://Paso 2: Cambia el texto, y el mensaje, respespectivamente
var occasion="El Retorno Del Rey"
var message_on_occasion="HOY ES EL GRAN DIA"
file://Paso 3: Configura la anchura, altura, el color, y el estilo del
texto
var countdownwidth='180px'
var countdownheight='20px'
var countdownbgcolor='lightblue'
var opentags=''
var closetags=''
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new
Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec
")
var crosscount=''
function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("c
ountdownie") : countdownie
countdown()
}
if (document.all||document.getElementById)
document.write('')
window.onload=start_countdown
function countdown(){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=filtered()
var todayd=filtered()
var todayh=filtered()
var todaymin=filtered()
var todaysec=filtered()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+"
"+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[mo-1]+" "+da+", "+yr
dd=filtered(todaystring)
dday=filtered(60*60*1000*24)*1)
dhour=filtered(60*60*1000)*1)
dmin=filtered(60*1000)*1)
dsec=filtered(60*1000))/1000*1)
file://if on day of occasion
filtered(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if filtered(document.layers){
filtered(opentags+mes
sage_on_occasion+closetags)
filtered()
}
else if filtered(document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
file://if passed day of occasion
else if filtered(dday<=-1){
if filtered(document.layers){
filtered(opentags+"Oc
casion already passed! "+closetags)
filtered()
}
else if filtered(document.all||document.getElementById)
crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
return
}
file://else, if not yet
else{
if filtered(document.layers){
filtered(opentags+dda
y+ " dias, "+dhour+" horas, "+dmin+" minutos y "+dsec+" segundos quedan
para
"+occasion+closetags)
filtered()
}
else if filtered(document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " dias, "+dhour+" horas, "+dmin+"
minutos y "+dsec+" segundos quedan para "+occasion+closetags
}
filtered("filtered()",1000)
}
height=&{countdownheight}; bgColor=&{countdownbgcolor};
visibility=hide>height=&{countdownheight}; left=0 top=0>
salu222