Computing.Net > Forums > Web Development > browser detection html code.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

browser detection html code.

Reply to Message Icon

Name: 222904
Date: February 10, 2007 at 15:27:44 Pacific
OS: xp
CPU/Ram: 1024
Product: clone :)
Comment:

Im making a website with some non firefox compatable objects.

Anyone know any html for my webpage to see that a browser is not IE and not use that part of the code.

Like for example

if IE
Load flash.swf
else
Load mygif.gif


Any ideas are welcome. THANKS!



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: February 10, 2007 at 21:07:37 Pacific
Reply:

<!--[if IE]>
<p>Only seen by IE</p>
<![endif]-->


if it's Flash, you can add the image to the code just before the closing </embed tag, and browsers without flash will use the image.


---
Fubar


0

Response Number 2
Name: Laler
Date: February 10, 2007 at 21:10:09 Pacific
Reply:

... You can also use the if IE in the head tag. For example: to specify CSS rule for IE only.

Other browsers, including W3C validator, will ignore everything between the tag.

---
Fubar


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: browser detection html code.

HTML code to save document on disk www.computing.net/answers/webdevel/html-code-to-save-document-on-disk/2491.html

Html code to open another window www.computing.net/answers/webdevel/html-code-to-open-another-window/989.html

html code www.computing.net/answers/webdevel/html-code/2061.html