chump2877
10-17-2005, 02:31 PM
This code:
if (navigator.appName == 'Microsoft Internet Explorer') {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos_IE.css">');
}
else if (navigator.appName == 'Opera') {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos_opera.css">');
}
else if (navigator.appName == 'Netscape') {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos.css">');
}
else {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos_IE.css">');
}
does not seem to effectively serve the appropriate stylesheet to Opera browsers...it works for the other browser types, so why not Opera?
if (navigator.appName == 'Microsoft Internet Explorer') {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos_IE.css">');
}
else if (navigator.appName == 'Opera') {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos_opera.css">');
}
else if (navigator.appName == 'Netscape') {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos.css">');
}
else {
document.write('<link rel="stylesheet" type="text/css" href="index_with_css_pos_IE.css">');
}
does not seem to effectively serve the appropriate stylesheet to Opera browsers...it works for the other browser types, so why not Opera?