I believe most developers have been experiencing compatiblity issues with so- called brwosers. I know you have spent lots of time fixing pages to grace all browsers. So have I. I feel distressed, exhausted when finishing tweaking. The last words I want to voice out ---- I hate this! Why not ask visitors to change another browser?! This plugin is set to list pros and cons of various browsers and recommend visitors to alter their browser!
This plugin will check the type and version of the browser the visitor is using, and show a UI box to recommend visitors to change his browser, etc. You can also manually choose the browser you want to prejudice on, and the plugin will help you tell the visitor how bad is the browser he’s using and the benifits of other browsers! Currently only 3 parameters are avaiblable, all of which are optional.
Load jQuery Libary
You can directly add the following code in <head> tag:
Load webPrejudice Plugin
<script type="text/javascript" src="jquery.webPrejudice.js"></script>
Assing the target object
Use it inside jQuery(document).ready() block:
jQuery.webPrejudice(); You can, of course , apply some change, customizing the xml path and target browser: jQuery.webPrejudice({ loc: “pathtoxml/set.xml”, target: “opera” }) Codes above will using the language settings in set.xml and the plugin will help you persuade visitors to drop out Opera and use another browser.
XML Preferrence File
By default, all lines are English, you can localize this plugin by creating XML Preferrence File in your own language. Open default.xml and edit it following the structure of this sample xml. The links of browsers downloading page are also in this xml file.