Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/02/2012, 21:33
Avatar de humanista
humanista
 
Fecha de Ingreso: abril-2005
Mensajes: 878
Antigüedad: 19 años, 1 mes
Puntos: 15
this.value="valor"

Hola, tengo este botón que lo que hace es que cuando alguien está suscrito a algo, si pasamos el ratón sin pinchar sobre el botón se me pasa de verde y "suscrito" a rojo y "quitar".
El problema que tengo es que no me coge el texto "quitar" y no sé porqué:

Código Javascript:
Ver original
  1. <a class='ari12bla' style='display:block; text-decoration:none; text-align:center; line-height:25px; background-image: url(../compartido/greenbuttonbackground.jpg); this.style.color=#FFFFFF; width:100px; height:25px; font-weight: bold; vertical-align:middle; border-left:1px solid #737373; border-right:1px solid #737373; cursor:pointer;' onMouseOver="this.style.backgroundImage='url(../compartido/redbuttonbackground.jpg)'; this.value='Quitar'" onMouseOut="this.style.backgroundImage='url(../compartido/greenbuttonbackground.jpg)'; this.value='Suscrito'" onclick="javascript:removerss('2','580')" />Suscrito</a>

también os lo pongo como lo tengo (en php) programado exactamente:

Código PHP:
    echo "<a class='ari12bla' style='display:block; text-decoration:none; text-align:center; line-height:25px; background-image: url(../compartido/greenbuttonbackground.jpg); this.style.color=#FFFFFF; width:100px; height:25px; font-weight: bold; vertical-align:middle; border-left:1px solid #737373; border-right:1px solid #737373; cursor:pointer;' onMouseOver=\"this.style.backgroundImage='url(../compartido/redbuttonbackground.jpg)'; this.value='$label_remove'\" onMouseOut=\"this.style.backgroundImage='url(../compartido/greenbuttonbackground.jpg)'; this.value='$label_subscribed'\" onclick=\"javascript:removerss('$idprofilelogged','$idrss')\" />" ucfirst($label_subscribed) . "</a>"