Hittade ett crossbrowserscript som funkade med IE och tom N6, men i Opera5 blev sidorna blanka. Eftersom både NS6 och Opera påstår att de följer W3C-standarden, finns chansen att det också skulle funka i Operan.
Tanken är att en rad för browseravkänning skulle göra jobbet.
tja, du kan alltid börja med dessa rader för att se vad browsern berättar om sig själv:
<script>
document.write("<BR>The appname of the current browser is: " + navigator.appName)
document.write("<BR>The appcodename of the current browser is: " + navigator.appCodeName)
document.write("<BR>The appversion of the current browser is: " + navigator.appVersion)
document.write("<BR>The useragent of the current browser is: " + navigator.userAgent)
document.write("<BR>The appminorversion of the current browser is: " + navigator.appMinorVersion)
document.write("<BR><BR>The platform of the current browser is: " + navigator.platform)
document.write("<BR>The cpuclass of the current browser is: " + navigator.cpuClass)
document.write("<BR><BR>The cookieenabled of the current browser is: " + navigator.cookieEnabled)
document.write("<BR>The clientinformation of the current browser is: " + navigator.clientInformation)
document.write("<BR><BR>The browserlanguage of the current browser is: " + navigator.browserLanguage)
document.write("<BR>The systemlanguage of the current browser is: " + navigator.systemLanguage)
</script>
Sen kan du jobba vidare från det, ett problem med nya Opera är att användaren själv kan ställa in hur den ska identifiera sig.
Dan
------------------
Freedom without discipline is chaos. Discipline without freedom is tyranny. DmSProject