NOTE: This is a collection of information and links collected over the years that might provide useful information. A Safer Company LLC does not guarantee, endorse or approve any of these links or their scripts. Use these links to other websites at your own risk.
- Web Design - IP Addresses
- cookie.txt
- Cookies and Microsoft Vista
- Accept Credit Cards
- FavIcon
- Translate into Other Languages
- Game Development and 3D
- .htaccess
- HTML - Conditional Comments for IE
- Icons
- Advanced Programming
- regular-expressions-cheat-sheet-v2.pdf
- Regular Expression- Regex
- Regular Expressions
- Preg_Replace PHP Function
- SSI - Server Side ludes
- Web Development Tools
HTML - Conditional Comments for IE
Different browsers and versions of browsers support different tags and scripting features. IE5+ started offering Called Conditional Comments (CC).
Conditional Comments (CC) is a set of comment-like tags that IE 5+ supports:
- look like regular HTML comments
- are treated as HTML comments by all browsers except IE
- can be used to selectively "comment out" any portion of your page
Example:
<!--[if IE]> You are using IE (IE5+ and above). <![endif]-->
Detecting Internet Explorer Version
Examples:
<!--[if IE 5.5000]> IE 5.5 has been detected <![endif]-->
<!--[if IE 6]> IE 6 has been detected <![endif]-->
Notice: the version 5.5- as 5.5000. This four digit definition is called version vector and is required whenever the version to detect is a subset of an integer.
<!--[if gte IE 7]>
<link rel="stylesheet" type="text/css" href="PATH/filename" />
<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="PATH/filename" />
<script type="text/javascript" src="PATH/filename.js"></script>
<![endif]-->
Operators
Operator syntax | Description |
---|---|
! | The "not" operator. |
lt | The "less than" operator. |
lte | The "less than or equal to" operator. |
gt | The "greater than" operator. |
gte | The "greater than or equal to" operator |
Exampe:
<!--[if gte IE 6]> IE 6+ has been detected. <![endif]-->
Page last updated: May 31, 2012 10:46 AM
Content and Navigation...