Código HTML:
<script> function editServers(serverid,serverid2) { var getstyle1 = document.getElementById(serverid).style.textDecoration; if(getstyle1 == "none") { document.getElementById(serverid).style.textDecoration='line-through'; document.getElementById(serverid2).style.display='none'; } else { document.getElementById(serverid).style.textDecoration='none'; document.getElementById(serverid2).style.display='block'; } } </script> Displaying songs from <a href="#" id="godi" onClick="editServers('godi','godi2')" style="text-decoration:none;">Goear</a>, <a href="#" id="mpdi" onClick="editServers('mpdi','mpdi2')" style="text-decoration:none;">Mp3Tube</a>, <a href="#" id="ijdi" onClick="editServers('ijdi','ijdi2')" style="text-decoration:none;">Ijigg</a>, <a href="#" id="wrdi" onClick="editServers('wrdi','wrdi2')" style="text-decoration:none;">Wrzuta</a> <div id="godi2" style="display:block;">asd</div> <div id="ijdi2" style="display:block;">asd213213</div> <div id="godi2" style="display:block;">aasdsd</div>