Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/10/2008, 10:21
carlosgs91
 
Fecha de Ingreso: abril-2007
Mensajes: 213
Antigüedad: 17 años
Puntos: 0
Ocultar varios divs o spans a la vez

Hola, tengo este código que creia que funcionaba en todos los navegadores pero falla en IE (al menos IE8):

Código HTML:
function editServers(serverid){

var getstyle1 = document.getElementById(serverid+'2').style.textDecoration;
if(getstyle1 == "none") { 
document.getElementById(serverid+'2').style.textDecoration='line-through';
}
else { 
document.getElementById(serverid+'2').style.textDecoration='none';
 }
Podeis ver lo que quiero hacer realizando cualquier busqueda en mi página (con Opera que si funciona) y dandole a los botones de "Displaying songs from goear [...]", por ejemplo: http://everymusic.co.cc/index.php?find=Green+day

¿Me entendeis? ¿Sabeis hacer que funcione en IE?

Gracias.