jQuery webPrejudice Plugin

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 06:12:15

软件介绍

Description

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!

Requirements

  • jQuery Libary, just download from jQuery Official Site
  • webPrejudice script file. You can download it from below
  • a little knowledge on xhtml and js

Features

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.

  • disable if the plugin is disabled. Don't assign any vallue and the plugin will work. Set to "true" if you want to disable the plugin.
  • loc the path of XML file where stores the language settings of this plugin.
  • target the browser you want to condem. You can choose from "ie6","ie7,"ie8","safari","mozilla","opera", or leave it blank. Default is "ie6". (Most people will agree with my prejudice on IE6)

Usage

Load jQuery Libary
You can directly add the following code in <head> tag:
<script type="text/javascript" src="jquery..js"></script>
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.

本文地址:https://codercto.com/soft/d/23045.html

精彩绝伦的CSS

精彩绝伦的CSS

[美] Eric A. Meyer / 姬光 / 人民邮电出版社 / 2012-7 / 49.00元

内容简介: 打造现代布局的专业技术 本书远非只是介绍基础知识,它不仅全面细致地讲解布局与效果,而且展望了HTML5和CSS3的未来。业内很少有人能像Eric A. Meyer一样详细阐明CSS,他在本书中深入分析了普遍适用的实用技术,讲解了如何选用正确的工具、如何通过jQuery使用CSS效果和CSS3技术。 本书主要内容如下: 显示或隐藏元素 通过XHTML为bod......一起来看看 《精彩绝伦的CSS》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具