Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/11/2010, 11:05
shoto_reaper
 
Fecha de Ingreso: octubre-2010
Mensajes: 26
Antigüedad: 13 años, 6 meses
Puntos: 0
problema funcion con ASP

En este codigo tengo el problema que nada mas ejecutarlo en un servidor local con el Dreamweaver, me invoca la funcion sin haber hecho yo click en el boton que deberia llamarla:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<% dim mes
dim fila
dim columna
dim num
dim dia
dia=1
num=0
mes= array("enero","febrero","marzo","abril","mayo","ju nio","julio","agosto","septiembre","octubre","novi embre","diciembre")
private sub siguiente()

end sub
%>
<body>
<table border=4>
<tr>
<td>
<input type=button value='<' onmousedown="<%siguiente()%>">
</td>
<td>
<%response.write(mes(num))%>
</td>
<td>
<input type=button value='>'>
</td>
</tr>
</table>
<% response.write("<table border=4>")
for fila=0 to 5
response.write("<tr>")
for columna=0 to 6
response.write("<td>"&dia&"</td>")
dia=dia+1
next
response.write("</tr>")
next
response.write("</table>")
%>

</body>
</html>

¿Alguna idea de que puede ser?