Site up and running

IamMrRayIamMrRay Otis, MA
edited December 2005 in Internet & Media
ok, I have my site up now, but I am still fighting a huge war with internet explorer and I definitely want it to be presentable for all browsers. IE is the only one out of 6 I have tested that is being stupid. I have an idea of using javascript to detect browser types and do an alternative style sheet for all wonderful Internet explorer but I rather not.... Any ideas???? :p

Comments

  • ShortyShorty Manchester, UK Icrontian
    edited December 2005
    We use that principal here to correct errors between browsers, it's a well established technique. So Id recommend the javascript route ;)
  • IamMrRayIamMrRay Otis, MA
    edited December 2005
    var Netscape = 0;
    var IE****fullness = 0;
    var OtherBrowser = 0;
    if (navigator.appName.indexOf('Netscape')
    !=-1) {Netscape = 1;}
    else
    {
    if (navigator.appName.indexOF('Microsoft Internet Explorer')
    != 1) {IE****fullness = 1;}
    else {OtherBrowser = 1;}
    }
    browserVersion = parseInt(navigator.appVersion);

    if (IE****fullness){
    document.write("<link REL='stylesheet' HREF='gd_dm_IE.css' TYPE='text/css'>");
    }
    else {
    if (Netscape){
    document.write("<link REL='stylesheet' HREF='default.css' TYPE='text/css'>");
    } else {
    if (OtherBrower) {
    document.write("<link REL='stylesheet' HREF='default.css' TYPE='text/css'>");
    }
    }
    }
  • IamMrRayIamMrRay Otis, MA
    edited December 2005
    once again, Internet Explorer is being stupid. This script works on all browsers except Internet Explorer...so wtf? hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm......I need a shrink.
  • IamMrRayIamMrRay Otis, MA
    edited December 2005
    oh ****! i just realized what i did... its that capital F so im gonna fix that now.... ;D ...yay
Sign In or Register to comment.