<script language="javascript">
if(window.navigator.userAgent.indexOf("MSIE 6.0")>=1){
//如果浏览器为IE
setActiveStyleSheet("style1.css");
}
else if(window.navigator.userAgent.indexOf("MSIE 7.0")>=1){
//如果浏览器为Firefox
setActiveStyleSheet("style2.css");
}
else if(window.navigator.userAgent.indexOf("Firefox")>=1){
//如果浏览器为Firefox
setActiveStyleSheet("style3.css");
}
else{
//如果浏览器为其它
setActiveStyleSheet("style4.css");
}
function setActiveStyleSheet(filename){
document.write("<link href=/"//css//"+filename+"/" type=/"text//css/" rel=/"stylesheet/">");
}
</script>