I have a page with a slideshow which doesn't look too great in IE8 or lower. Is there a way to display different content for these browsers?

Recommended Answers

All 2 Replies

Yes, you could attempt to detect a browser; however, the best way is to redesign and apply Cascade Style Sheet (CSS) to your web page. All major browsers normally follow the CSS rules. Even though there could be some differences (i.e. older IE browser versions and maybe the current version box model is different from others), there is always a work around. What are the differences you are seeing now when you view your page on IE8 and others?

the code is simple:
http://www.quirksmode.org/js/detect.html

simply surround it by an IF tag, and you're set.
That said, CSS is indeed more reliable, but when you script is too complex to be converted, this might be a viable solution as wel.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.