StyleSwichter
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/StyleSwichter
软件介绍
StyleSwichter is a little jQuery plugin to alternate CSS stylesheets in a web page. StyleSwichter set the appropiate style (previously saved in a cookie) when the web page load, using the "DOM ready" function of jQuery. After this, you can use the plugin (the same function) to establish another style, and the plugin set it and save the selection in a cookie.
The plugin is around 2 KB and packed only 600 bytes. Take a look, the usage of plugin is here:
// DOM ready!
$(function(){
var options={
linkTitle: 'styleswichter',
cookieName: 'selected-style'
};
$.fn.StyleSwichter(options);
});The plugin find in the appropiate cookie, and, if a style is saved previously, change to this style automatically. After this, in some place on your web page, you can use the plugin as is:
$.fn.StyleSwichter({cssPath: 'path/style.css'});As you can see, in this case we indicate the path to a CSS stylesheet. The plugin establish this style and save in a cookie, to be use in sucesive reload of the page. Note that we not use all the options here. Take a look to the available options, that you can use if need. This is the default options values:
$.fn.StyleSwichter.defaults={
cssPath: '',
cookiePath: '',
cookieDays: 30,
cookieDomain: '',
cookieSecure: false,
linkTitle: 'styleswichter',
cookieName: 'selected-style'
};To read and write the appropiate cookie this plugin use the Cookie jQuery plugin, and this is required in order to use StyleSwichter. The plugin as been tested in Firefox 2, Opera 9, IExplorer 7 and Safari 3. The example file also contain the documentation (in source code) and the link to download StyleSwichter.
In my weblog (in spanish language) I prepare a page to publish this plugin, visit the StyleSwichter page in my weblog. Licensed under the GNU GPL license, I hope this little plugin maybe is usefull for you. Any comments are welcome.
无处安放的互联网隐私
【美】茱莉亚·霍维兹 【美】杰拉米·斯科 / 中国人民大学出版社有限公司 / 2017-7-1 / CNY 55.00
在当今互联网时代,我们的隐私权已经受到了威胁,政府或企业可以追踪我们的电话,搜索引擎可以记录我们的在线浏览记录以及恒温器的设置以及更多信息。在当代,保卫隐私权不只是简单地描述出存在的问题或者警告人们隐私权已经丧失,隐私权的护卫者们提出了解决策略。他们密切关注商业实践、公共政策和技术设计以及人物,应该继续下去吗?条件就是:有问题,让我们找到解决之道。一起来看看 《无处安放的互联网隐私》 这本书的介绍吧!
