Click to See Complete Forum and Search --> : Where ??


david57
10-21-2003, 06:16 AM
:confused: :mad: when your given this
http://www.sportsfish.com.au/forum/
and it has to run in Mozilla (linux and windows) plus the usual ie :o
where do you start........:eek: :eek: :confused: :(

(I dare you to click the link in mozilla or Konqueror......c'mon!!)

Robert Wellock
10-21-2003, 09:03 AM
Are you spamming this forum or asking a question? If you code to standards, it shouldn't make a major difference whether you use the Superior Mozilla or the substandard M$ Explorer.

spufi
10-21-2003, 12:16 PM
I was 2 for 2 in clicking on the link and it locking up my browser(Moz 1.5). Whatever the site is, it sucks. ;)

david57
10-21-2003, 03:03 PM
Originally posted by Robert Wellock
Are you spamming this forum or asking a question? If you code to standards, it shouldn't make a major difference whether you use the Superior Mozilla or the substandard M$ Explorer.

No not spamming Robert, just sharing. I totally agree with you though about coding to standards, I am trying to help this guy out and wanted to share the mess..:eek: :confused: :rolleyes:

cheers

spufi
10-21-2003, 03:36 PM
I didn't think it was spam at first and I finally did look at the site while using IE 6. It basically looks like somebody took the idea of a XML file and used CSS and JavaScript to make it work in IE 5 and above. At this point, you could convert it to a valid XML file and go that way although a pure XML file isn't going to do much in older browsers(not like they seem to care), or you can just convert it over to XHTML with CSS. Either way, there's just a TON of code to be thrown out/reworked.

david57
10-22-2003, 03:03 AM
What is surprising to me is, is it runs on my Linux box using 'opera 7.11
Now I thought that opera just ran in "standards" mode full stop........ so why does it work in opera but slams mozilla, firebird and Konqeror?
Its a script somewhere but I dont know where to look ':(

spufi
10-22-2003, 09:49 AM
I actually found some Mozilla related code in two of the external JavaScript files. In the api.js file it does check for a gecko browser, and in the global.js file it has a line to create a link to a external JavaScript file made for Mozilla. Below is the code for both.

function cm_bwcheck()
{
this.ver=navigator.appVersion;
this.agent=navigator.userAgent.toLowerCase();
this.dom=document.getElementById?1:0;
this.op5=(this.agent.indexOf("opera 5")>-1||this.agent.indexOf("opera/5")>-1)&&window.opera;
this.op6=(this.agent.indexOf("opera 6")>-1||this.agent.indexOf("opera/6")>-1)&&window.opera;
this.ie5=(this.agent.indexOf("msie 5")>-1&&!this.op5&&!this.op6);
this.ie55=(this.ie5&&this.agent.indexOf("msie 5.5")>-1);
this.ie6=(this.agent.indexOf("msie 6")>-1&&!this.op5&&!this.op6);
this.ie4=(this.agent.indexOf("msie")>-1&&document.all&&!this.op5&&!this.op6&&!this.ie5&&!this.ie6);
this.ie=(this.ie4||this.ie5||this.ie6);
this.mac=(this.agent.indexOf("mac")>-1);
this.ns6=(this.agent.indexOf("gecko")>-1||window.sidebar);
this.ns4=(!this.dom&&document.layers)?1:0;
this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.op5||this.op6);
this.usedom=this.ns6;
this.reuse=this.ie||this.usedom;
this.px=this.dom&&!this.op5?"px":"";
return this
};

if(/Mozilla\/5\.0/.test(navigator.userAgent))d('<script type="text/javascript" src="/mozInnerHTML.js"></sc'+'ript>');

david57
10-23-2003, 02:56 AM
Thanks for devoting a bit of your time to this abortion spufi :)
I got the cold shoulder when I suggested a rewrite of the whole shebang :rolleyes:
The owner thinks this is the way sites should be written and cant be swayed from his chosen path..:mad:

But....... my scripting is non-existant, so these snippets youve come up with, would they be a starting point to look for why the site locks gecko up ????

Thanks again for your time
cheers
david