CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 9th, 2003, 12:37 PM
generalDisarray generalDisarray is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Northern California
Posts: 2 generalDisarray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Detecting browsers that do not support CSS

Hello,

I'm working on a site with a very complex layout, lots of pics and rollovers, etc. I have always used tables to achieve the positioning and layout of the page, but the time has come to give that up and use CSS layers to do the site's look. I want to use javascript to detect older browsers that don't support CSS, and redirect users to an alternative no-CSS version of my site.

My question is what is the best way to use javascript to detect css support in a browser?

if( /* no css support */ )
{
//redirect them to the no-css site
}
else
{
//let em through
}

Reply With Quote
  #2  
Old July 9th, 2003, 12:49 PM
generalDisarray generalDisarray is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Northern California
Posts: 2 generalDisarray User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<script>
if (document.all || document.layers || document.getElementById){
document.write("<LINK REL="StyleSheet" HREF="" type="text/css">");
<!--Support CSS-->
}else{
document.write("<LINK REL="StyleSheet" HREF="" type="text/css">")
<!--Non CSS Browser-->
}
</script>

i found this on google what do you guys think?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Detecting browsers that do not support CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway