Using VB Scripts functions in VWD 2005

jeva39

Well-known member
Joined
Jan 28, 2005
Messages
135
Location
Panama
Programming Experience
1-3
Please. how I can use this function in a VWD page? I write for old Asp and working very well but now give me a lot of errors...

VB.NET:
var strfecha=""
//Array meses y días
meses=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre",
"Octubre","Noviembre","Diciembre"];
dias=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]
fecha=new Date()
mes=fecha.getMonth()
dia=fecha.getDate()
ds=fecha.getDay()
ano=fecha.getFullYear()
eldia=dias[ds]
//Poner nombres en español
for (j=0;j<meses.length;j++){
if (mes==j) {elmes=meses[j]}
}
strfecha="    " + eldia  + " " + dia + " de " + elmes + " de " + ano + ". Este sitio está diseñado para resolución 1024x768 y Explorer 5.0+"
document.write(strfecha)
// End hiding -->

What is the correct type for mes, dia,ds,ano and eldia variables? A second question: I use in my Web sites Menus created with DHTMLMenu (Sothink). This Soft produces the necesary scripts that I can include in the pages. How I can do?

Thanks
 
Back
Top