- // js-part
- <script type='text/javascript'>
- /* <![CDATA[ */
- jQuery(document).ready(function()
- {
- /*##########################################################################
- ENVIRONMENT ##########################################################################*/
- $('body').removeClass('NOSCRIPTS');
- var userAgent = navigator.userAgent.toLowerCase();
- if(!jQuery.browser)
- jQuery.browser = {
- version: (userAgent.match( /.+(?:rv|it|ra|ie)[/: ]([d.]+)/ ) || [0,'0'])[1],
- safari: /webkit/.test( userAgent ),
- opera: /opera/.test( userAgent ),
- msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
- mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
- };
- if((jQuery.browser.msie && jQuery.browser.version < 7))
- $('body').addClass('LilChickOfDoomWithSenseOfAgony');
- if((jQuery.browser.msie && jQuery.browser.version == 7))
- $('body').addClass('MrHacky');
- if((jQuery.browser.msie && jQuery.browser.version == 8))
- $('body').addClass('MrBuggy');
- if((jQuery.browser.msie))
- $('body').addClass('IE');
- else if((jQuery.browser.safari))
- $('body').addClass('SAFARI');
- else if((jQuery.browser.opera))
- $('body').addClass('OPERA');
- else if((jQuery.browser.mozilla))
- $('body').addClass('MOZILLA');
- else
- $('body').addClass('UNKNOWN');
- });
- /* ]]> */
- </script>
- // html-part
- <body id="ROOT" class="NOSCRIPTS">
IE6 JS shizzl
By: icronosonic | Date: Feb 15 2010 14:29 | Format: None | Expires: never | Size: 1.54 KB | Hits: 948
Latest pastes
55 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago