Estimados amigos, estoy desarrollando el un sitio para una radio que transmite en alta calidad, y hay que bajar el codec para poder escuchar, buscando encontré la función
FileSystemObject el tema es que NO hace nada la pagina se queda en blanco y si voy a la consola de errores me dice lo siguiente:
Uncaught ReferenceError: ActiveXObject is not defined http://localhost/classic/aaaa.php (line 11)
como puedo solucionar esto?
les dejo el codigo de la pagina:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<SCRIPT LANGUAGE="JavaScript">
var archivo="C:\\Archivos de programa\\Orban\\AAC-aacPlus Plugin\\Read_Me.html"
function fileexists(){
var fso = new ActiveXObject("Scripting.FileSystemObject");
fileBool = fso.FileExists(archivo);
if (fileBool){document.location.href="./radio.php"}
else{document.location.href="./bajarcodec.php"}
}
</SCRIPT>
</head>
<body onload="fileexists()">
</body>
</html>
Un saludo desde ya