1 < Link href = "" REL = " Stylesheet " Type = " Text/CSS " ID = " Link " />
2 < Script Type = " Text/JavaScript " >
3 <! --
4 If (Window. Navigator. useragent. indexof ( " MSIE " ) > = 1 )
5 {
6 // If the browser is IE
7 Setactivestylesheet ( " Ie8.css " );
8 }
9 If (Window. Navigator. useragent. indexof ( " Firefox " ) > = 1 )
10 {
11 // If the browser is Firefox
12 Setactivestylesheet ( "Firefox . CSS " );
13 }
14 Else
15 {
16 // If the browser is
17 Setactivestylesheet ( " Other.css " );
18 }
19 Function setactivestylesheet (title)
20 {
21 Document. getelementsbytagname ( " Link " )[ 0 ]. Href = "Url / " + Title;
22 }
23 // -->
24 </ Script >
25 <! -- [ If LTE IE 6 ] >
26 < LINK rel = " Stylesheet " Type = " Text/CSS " Href = "Url /Ie6.css " />
27 <! [Endif] -->
28 <! -- [ If IE 7 ] >
29 < LINK rel = " Stylesheet " Type = " Text/CSS " Href = " URL/ie7.css " />
30 <! [Endif] -->
SetCodeIn the