-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
54 lines (46 loc) · 1.83 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Author: MKT VIRTUAL (Bruno Marques)
* Email: [email protected]
* URL: http://github.com/mktvirtual/updatebrowser
* Version: 1.0
* Licensed under the MIT License
* Compatible with (IE6, IE7, Firefox < 3.6, Chrome, Safari 3)
* usage: include js - http://github.com/mktvirtual/Deprecated-Browser/raw/multi-language/deprecated_browsers.js
* call function deprecated to init, - deprecated('color'); where color = hexadecimal string;
**/
*usage (version .min):
*include js -> http://github.com/mktvirtual/Deprecated-Browser/raw/multi-language/deprecated_browsers.min.js (size: 5 kb)
*call init function
deprecated_browser.init(bgColor, textColor, lg);
*where color = hexadecimal string
*lg = language(string) where:
*'pt' = portugues
*'en' = english
*'es' = spanish
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<div class="exemple1">
<div><p>Exemple1: How to use only in IE6</p></div>
<!--[if lt ie 7]>
<script type="text/javascript" src="http://github.com/mktvirtual/Deprecated-Browser/raw/multi-language/deprecated_browsers.min.js"></script>
<script type="text/javascript" charset="utf-8">deprecated_browser.init('#2978B8', 'white', 'en');</script>
<![endif]-->
</div>
<div class="exemple2">
<div><p>Exemple2: How to use only in IE6 with jQuery</p></div>
<!--[if lt ie 7]>
<script type="text/javascript" src="http://github.com/mktvirtual/Deprecated-Browser/raw/multi-language/deprecated_browsers.min.js"></script>
<![endif]-->
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($){
var browserVersion = jQuery.browser.version;
var browserFamily = $.browser.msie;
if(browserVersion == '6.0' && browserFamily) deprecated_browser.init('#ffc440', '#000000');
});
</script>
</div>
</body>
</html>