Cita:
Iniciado por goteen_mx Si tu sabes que estilos vas a quitar, que tal así
Código Javascript
:
Ver original<html>
<head>
<link rel="stylesheet" type="text/css" href="http://static.forosdelweb.com/clientscript/fdwforumhome/headmenu.css?v=1" />
<link rel="stylesheet" type="text/css" href="http://static.forosdelweb.com/clientscript/fdwforumhome/shared.css?v=2" />
<link rel="stylesheet" type="text/css" href="http://static.forosdelweb.com/clientscript/fdwforumhome/otroCss.css?v=2" />
<script>
var aQuitarCss = new Array();
aQuitarCss[0]="http://static.forosdelweb.com/clientscript/fdwforumhome/headmenu.css?v=1";
aQuitarCss[1]="http://static.forosdelweb.com/clientscript/fdwforumhome/otroCss.css?v=2";
function getStyles(){
for(var i=0;i<document.styleSheets.length;++i){
for(var j=0;j<aQuitarCss.length;j++)
if(document.styleSheets[i].href==aQuitarCss[j]){
document.styleSheets[i].disabled=true;
}
}
for(i=0;i<document.styleSheets.length;++i){
alert(document.styleSheets[i].disabled);
}
}
</script>
</head>
<body>
<input type="button" value="getStyles" onclick="getStyles();" />
</body>
</html>
Saludos.
Gracias por contestar, peor lo que yo buscaba era un script, que se haga automáticamente...