View Single Post
Old 03-01-2006, 07:20 PM  
Kevsh
Confirmed User
 
Join Date: Dec 2004
Location: TO
Posts: 8,619
Quote:
Originally Posted by Pete-KT
is there a way in an html to tell if the user is using ie or FF and if its FF to use a differnt part of code instead of using the code for ie?
In pure HTML?
Nope. You'll have to rely on JavaScript, etc. for the detection and it can update the tags parameters (visible/not visible).

eg. (in sort of a mashed pseudo-code)

<script>
IF browser = IE then one.visibility="visible"
ELSE two.visibility="visible"
</script>

<DIV ID="one" STYLE="visibility: hidden">
IE stuff here
</DIV>

<DIV ID="two" STYLE="visibility: hidden">
FF stuff here
</DIV>

I'd look up the exact elements/parameters but this is the basic idea, I did something like this a LONG time ago and it should still be viable.
Kevsh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote