Spaceman Spiff: html bereiche für bestimmte browser 'ausblenden' ?

Beitrag lesen

There exists an HTML only solution for IE specific code, the so called "Conditional Conditions" from Microsoft.
You can use them for IE5 and higher; in the following example we write a link to add a site to the Favorites:

<!--[if gte IE5 ]>
<a href="javascript:window.external.AddFavorite('http://shop.swarovski.com', 'Crystal online')">
Zu Favoriten hinzufügen
</a>
<![endif]-->

The Syntax for > and <:

!  "not"
lt "lower than"
lte  "lower than or equal"
gt  "greater than"
gte  "greater than or equal"

As all other browsers don't know the syntax, they take the code as an usual comment and show nothing!

lg Spiff