Moin leute,
ich habe ne seite zu pflegen und die hat ne browserweiche, leider gibts mit mozilla probleme
ich postet die weiche mal hier und wäre über tipps sehr dankbar.
die weiche ist net von mir
!
function Is() {
var agent = navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf==-1) && (agent.indexOf == -1)));
this.ns2 = (this.ns && (this.major == 2));
this.ns3 = (this.ns && (this.major == 3));
this.ns4b = (this.ns && (this.minor < 4.04));
this.ns4 = (this.ns && (this.major >= 4));
this.ie = (agent.indexOf("msie") != -1);
this.ie3 = (this.ie && (this.major == 2));
this.ie4 = (this.ie && (this.major >= 4));
this.op3 = (agent.indexOf("opera") != -1);
this.win = (agent.indexOf("win")!=-1);
this.mac = (agent.indexOf("mac")!=-1);
this.unix = (agent.indexOf("x11")!=-1);
}
var is = new Is();
function onerror() {alert("Fehler");}
if(is.ns4) {
doc = "document";
sty = "";
htm = ".document"
framedoc = "parent.framelinks.document";
framesty = "";
framehtm = ".document";}
else if(is.ie4) {
doc = "document.all";
sty = ".style";
htm = ""
framedoc = "parent.framelinks.document.all";
framesty = ".style";
framehtm = "";}
function ZweiFrames(URL1,F1,URL2,F2){
parent.frames[F1].location.href=URL1;
parent.frames[F2].location.href=URL2;}
function DreiFrames(URL1,F1,URL2,F2,URL3,F3){
parent.frames[F1].location.href=URL1;
parent.frames[F2].location.href=URL2;
parent.frames[F3].location.href=URL3;
}
!
danköö :))