Hallo,
function my_browser(){
this.byId= document.getElementById?1:0;
this.byTag = document.getElementsByTagName?1:0;
this.defView = document.defaultView?1:0
this.elFP = document.elementFromPoint?1:0
this.dom = (this.byId && this.byTag)?1:0
this.op50 = (this.byId && !this.byTag && !this.dom)?1:0;
this.op51 = (this.dom && !this.defView && !this.elFP)?1:0
return this;}
var bw=new my_browser();
if (bw.op50){
alert("Opera Browser <= 5.01");}
if (bw.op51){
alert("Opera Browser > 5.01");}
if (!bw.op50 || !bw.op51){
alert("Kein Opera Browser");}
Gruß
Markus