= 4 || $type == 'Explorer' && $vers >= 3 || $type == 'Opera' && $vers >= 3) { $browser['css'] = 1; if ($type == 'Netscape' && $vers >= 5 || $type == 'Explorer' && $vers >= 6 || $type == 'Opera' && $vers >= 4) { $browser['css'] = 2;}} // detect DOM version $browser['dom'] = '0'; if ($type == 'Explorer' && $vers >= 4 && $browser['platform'] == 'Windows') { // note: it is unknown which DOM model future versions of Explorer will use $browser['dom'] = 'IE';} elseif ($type == 'Opera' && $vers >= 5) { $browser['dom'] = 'W3C';} elseif ($type == 'Netscape') { if ($vers >= 5) $browser['dom'] = 'W3C'; elseif ($vers >= 4) $browser['dom'] = 'NS';} // return array of answers return $browser;} $browser = SniffBrowser(); ?>
Sami hilft mit

Blutspenden