NogDog wrote:
Since we're at PHPBuilder.com, have you considered doing this server-side instead of client-side, using [FONT="Courier New"]$_SERVER['HTTP_USER_AGENT'][/FONT] in some PHP code to implement this?
I was affaid that would come up and yes that would be the easy way. As my original post was of some length I left out the story behind it.
If it can be don't with PHP I can do it and I learned how to do most of that from here (phpbuilder.com). Unfortunately, some friends of mine without first consulting me went and purchased a site for the guild they run in a MMORPG game. Let's put it this way the guy who designed it can do insane things as far as the background functionallity. But when it comes to appearance, user friendliness, and costumizability it is a nightmare. I have told every designer I know, that this site has all of the top 10 "do not do's" of web design and he added 5 more.
For example: Several parts of the site are dynamically included, do you think he would use a standard php include, not on his life. The code is parsed, I suspect using javascripts (don't let the .php file extentions fool you), for html comment tags ( <!--System:Menu:Xxxxxxx--> ) to include various parts of the page. And to make matters worse he refuses to let anyone use anything outside of HTML and CSS to make changes. But fortunately for the savvy web designer javascript is also available. The worst part of the site is his forums, take for example the forums we are using here. They are very easy to navigate and sort through. But his forums found at http://www.dkpsystem.com/forum.php are horrible if you do not select the category or categoies you want to see you just see all the posts at once. And he thinks they're the forums of the future and will not allow anyone to change them.
After several heated exchanges with him in his forums I am resorting to a more knowlegdeable group for getting this done ( everyone here ). I think for the most part I can hard code, or use javascript to strip apart his code and make a very nice user friendly site.
JPnyc wrote:
You shouldn't need scripting for this at all. Most of the time, all gecko browsers, and Opera, will show it exactly the same. IE is usually the only odd one out, so this can be done entirely with CSS either using the !important hack, or IE's proprietary testing method, which even allows you to test for version.
http://www.quirksmode.org/css/condcom.html here's a tutorial on it
You are right about the browsers, the code I gave above is testing code, I use Firefox for my browser so it was trying to get the code to work there first and then I would modify it to work with IE.
Thanks for the link. I had heard about this but as most of my work is in content managment systems I usually don't deal with how thing look to any major extent. I will take a look and hopefully it will solve my problems.