Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Detect Browser/Redirect to site
Old 11-08-2004, 10:44 PM Detect Browser/Redirect to site
TheProfessor's Avatar
Junior Talker

Posts: 1
Trades: 0
Hi, first time posting here! So here goes!

http://www.paragondefenseforce.net/news/

I've made my website using a fair amount of png-24 files as I'm sure many of you are well aware of IE's innefficiencies dealing with the image type.

I've found a few sites which detail how to use some Javascript/html code to allow IE so see the transparancy of png files, but none of them work for me because I use an external .css file which I guess is a no-no.

Even then, I'm not huge on the idea of using a hack. The solution I'm looking would detect the browser the viewer is using and then either send them to the original site (with .pngs) or to a .jpg and .gif site if they are using IE. Is this possible? If it is, could anyway help out or maybe guide me towards a good tutorial that could do this?

Thanks in advance for any help!
TheProfessor is offline
Reply With Quote
View Public Profile Visit TheProfessor's homepage!
 
 
Register now for full access!
Old 11-10-2004, 04:59 PM
zcorpan's Avatar
Average Talker

Posts: 15
Trades: 0
I would go for this:
Code:
<head>
<link rel="stylesheet" type="text/css" 
media="screen" href="/default.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" 
media="screen" href="/ie.css" />
<![endif]-->
</head>
Then simply override what you want changed in IE. Read more about conditional comments

Or, you can use an IE css bug, like this:
Code:
/* the default png-24 image... */
#foo { 
background-image: url("default.png");
}
/* ...and a gif image for IE */
* html #foo {
background-image: url("ie.gif");
}
Read more about the star html bug

--

A simple "browser detection" (UA sniffing) is not as accurate as these two methods as the user can change the UA string.
zcorpan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Detect Browser/Redirect to site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34492 seconds with 12 queries