🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3114

Re: Cambiando el cursor en página web

#3114
From: thvno bodoque
Date: Thu, 05 May 2005 16:52
27 lines
2107 bytes
thvno bodoque wrote:
> Surgi� la necesidad de que, al momento de hacer click en el bot�n submit 
> de la p�gina web, el cursor cambie al "wait" de windows (el form que se 
> env�a genera un query en el server, es medio pesadito tonces pasan un 
> par de segundos antes que la ventana se refresque).
> 
> He estado web-iando harto rato pero no logro encontrar una soluci�n para 
> cambiar el estilo del cursor. Trat� con algunas instrucciones en el 
> onClick del bot�n pero nada resulta (en css no soy muy truqueado).
> 
> La idea es: al hacer click en el bot�n, cambiar el cursor de la p�gina.

Me respondo solo:

<input type="button" name="Button" value="continuar2" 
onClick="javascript: document.body.style.cursor='wait'; 
document.forms[0].Button.disabled = true;">

Ah� por si a alguien le sirve :-P


-- 
Daniel A.
Thvno Bodoque (http://www.thvno.cjb.net)
thvnoS.P.A.M@tutopia.com
Ojo! Al responder por e-mail, quitar S.P.A.M
"Programmer's mantra: NULL is a state, not a value"
Technical Details
Message-ID: <d5djjq$664$1@spawn.telmexchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!cyclone.bc.net!nntp-server.pubsub.com!news1.nivel5.cl!news.vcd.cl!not-for-mail!news.telmexchile.cl!not-for-mail
References: <d5dio9$5uv$1@spawn.telmexchile.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,3488bd5ba5e0abe
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
From: thvno bodoque <thvnoS.P.A.M@tutopia.com>
Newsgroups: chile.comp.programacion
Subject: Re: Cambiando el cursor en página web
Date: Thu, 05 May 2005 12:52:27 -0400
Organization: Telmex Chile
Lines: 27
Message-ID: <d5djjq$664$1@spawn.telmexchile.cl>
References: <d5dio9$5uv$1@spawn.telmexchile.cl>
NNTP-Posting-Host: 200.27.53.226
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: spawn.telmexchile.cl 1115312570 6340 200.27.53.226 (5 May 2005 17:02:50 GMT)
X-Complaints-To: usenet@rdc.cl
NNTP-Posting-Date: Thu, 5 May 2005 17:02:50 +0000 (UTC)
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
In-Reply-To: <d5dio9$5uv$1@spawn.telmexchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!cyclone.bc.net!nntp-server.pubsub.com!news1.nivel5.cl!news.vcd.cl!not-for-mail!news.telmexchile.cl!not-for-mail