Return to Snippet

Revision: 27822
at June 24, 2010 16:28 by cummingscm


Updated Code
/*
Include jQuery Library

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
*/

$(document).ready(function(){
	pubService();
});

function pubService(){
	if($.browser.msie){
	    pubServiceString = 'Internet Explorer is bad. Try using any of the following secure and free alternatives instead: '+
	    '<a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a>, '+
	    '<a href="http://www.google.com/chrome">Google Chrome</a>, '+
	    '<a href="http://www.apple.com/safari/">Safari</a>.';

	    $('body').prepend('<div id="pubService"></div>').css({'margin':0});

	    $('#pubService').css({
	        'background-color':'#FFA896',
	        'color':'#000',
	        'padding':'10px',
	        'text-align':'center',
	        'border-bottom':'1px solid #000'
	    }).append(pubServiceString);
	}
}

Revision: 27821
at June 24, 2010 16:25 by cummingscm


Updated Code
/*
Include jQuery Library

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
*/

if($.browser.msie){
    pubServiceString = 'Internet Explorer is bad. Try using any of the following secure and free alternatives instead: '+
    '<a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a>, '+
    '<a href="http://www.google.com/chrome">Google Chrome</a>, '+
    '<a href="http://www.apple.com/safari/">Safari</a>.';

    $('body').prepend('<div id="pubService"></div>').css({'margin':0});

    $('#pubService').css({
        'background-color':'#FFA896',
        'color':'#000',
        'padding':'10px',
        'text-align':'center',
        'border-bottom':'1px solid #000'
    }).append(pubServiceString);
}

Revision: 27820
at June 24, 2010 16:23 by cummingscm


Updated Code
/*
Include jQuery Library

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
*/


$(document).ready(function(){
	pubService();
});

function pubService(){
	if($.browser.msie){
		pubServiceString = 'Internet Explorer is bad. Try using any of '+
		'the following secure and free alternatives instead: '+
    		'<a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a>, '+
    		'<a href="http://www.google.com/chrome">Google Chrome</a>, '+
    		'<a href="http://www.apple.com/safari/">Safari</a>.';

		$('body').prepend('<div id="pubService"></div>').css({'margin':0});

		$('#pubService').css({
			'background-color':'#FFA896',
			'color':'#000',
			'padding':'10px',
			'text-align':'center',
			'border-bottom':'1px solid #000'
		}).append(pubServiceString);
	}
}

Revision: 27819
at June 24, 2010 16:22 by cummingscm


Updated Code
/*
Include jQuery Library

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
*/


$(document).ready(function(){
	pubService();
});

function pubService(){
	if($.browser.msie){
		pubServiceString = 'Internet Explorer is bad. Try using any of '+
		'the following secure and free alternatives instead: '+
    		'<a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a>, '+
    		'<a href="http://www.google.com/chrome">Google Chrome</a>, '+
    		'<a href="http://www.apple.com/safari/">Safari</a>.';

		$('body').prepend('').css({'margin':0});

		$('#pubService').css({
			'background-color':'#FFA896',
			'color':'#000',
			'padding':'10px',
			'text-align':'center',
			'border-bottom':'1px solid #000'
		}).append(pubServiceString);
	}
}

Revision: 27818
at June 24, 2010 16:16 by cummingscm


Initial Code
/*
Include jQuery Library

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
*/


$(document).ready(function(){
	pubService();
});

function pubService(){
	if(!$.browser.msie){
		pubServiceString = 'Internet Explorer is bad. Try using any of the following secure and free alternatives instead: '+
		'Firefox, '+
		'Google Chrome, '+
		'Safari.';

		$('body').prepend('').css({'margin':0});

		$('#pubService').css({
			'background-color':'#FFA896',
			'color':'#000',
			'padding':'10px',
			'text-align':'center',
			'border-bottom':'1px solid #000'
		}).append(pubServiceString);
	}
}

Initial URL


Initial Description


Initial Title
IE Public Service Ribbon

Initial Tags


Initial Language
JavaScript