Gracias por vuestra ayuda!
P.D: Encontre un codigo pero no funcionaba bien, lo cambien un poco, y sigue sin funcionar, este es el codigo que tengo, lo dejo por si os sirve para algo:
Código:
<script language="Javascript"> var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i<data.length;i++) { var dataString = data[i].string; var dataProp = data[i].prop; this.versionSearchString = data[i].versionSearch || data[i].identity; if (dataString) { if (dataString.indexOf(data[i].subString) != -1) return data[i].identity; } else if (dataProp) return data[i].identity; } }, searchVersion: function (dataString) { var index = dataString.indexOf(this.versionSearchString); if (index == -1) return; return parseFloat(dataString.substring(index+this.versionSearchString.length+1)); }, dataBrowser: [ { string: navigator.userAgent, subString: "MSIE", identity: "Explorer", versionSearch: "MSIE" }, ], dataOS : [ { string: navigator.platform, subString: "Win", identity: "Windows" }, { string: navigator.platform, subString: "Mac", identity: "Mac" }, { string: navigator.platform, subString: "Linux", identity: "Linux" } ] }; BrowserDetect.init(); if (BrowserDetect.browser == "Explorer"){ if (BrowserDetect.version>=<7){ document.write("<LINK REL='stylesheet' HREF='ie6.css' TYPE='text/css'>"); } } } </script>