/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* 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); } }