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.