風之紫色  BLOG

分享一个好看的纯css的标签背景

css技巧2013-01-29 11:21
 实例:

.span8 { width:580px;border: 1px solid #DDD;background-color:#FFFFFF;-moz-border-radius: 4px 0px 0px 4px;-webkit-border-radius: 4px 0px 0px 4px;border-radius: 4px 0px 0px 4px;float:left;clear:both;margin-bottom:10px;min-height:120px;margin-left:10px }.event-status-tips { width:100%;height:50px;position:relative }.event-status { position: absolute;color:#FFFFFF;top:16px;left:-6px }.event-status-text { font-size: 14px;line-height: 20px;height: 20px;padding: 5px 15px 5px 17px;color: #ffffff!important;background: #88CBFB;}.event-status-pointer { width: 0;height: 0;border-left: 16px solid #ad0000;border-right: 0 none;position: absolute;right: -14px;border-left-color: #88CBFB; }.event-status-pointer.top { border-top: 0 solid transparent;border-bottom: 16px solid transparent;top: 0; }.event-status-pointer.bottom { border-top: 16px solid transparent;border-bottom: 0 solid transparent;bottom: 0; }.event-status-ribbon { width: 0;height: 0;border-left: 0;border-right: 5px solid #3e0012;border-top: 0;border-bottom: 5px solid transparent;border-right-color: #5E8CAD;position:absolute;bottom:0px;left:-6px}.event-status-tips.event-status-3 .event-status-text { background:#F2710E }.event-status-tips.event-status-3 .event-status-pointer.top { border-left-color:#F2710E }.event-status-tips.event-status-3 .event-status-pointer.bottom { border-left-color:#F2710E }.event-status-tips.event-status-3 .event-status-ribbon { border-right-color:#b9560a }.event-status-tips.event-status-2 .event-status-text { background:#cccccc }.event-status-tips.event-status-2 .event-status-pointer.top { border-left-color:#cccccc}.event-status-tips.event-status-2 .event-status-pointer.bottom { border-left-color:#cccccc }.event-status-tips.event-status-2 .event-status-ribbon { border-right-color:#8a8a8a }.event-status-tips.event-status-1 .event-status-text { background:#69B93B }.event-status-tips.event-status-1 .event

ubuntu下触摸板开关控制脚本

Linux2013-01-15 23:28
新入手一台DELL XPS new 15, 火速安装了ubuntu12.04, 在敲代码的时候手老是碰到触摸板,光标乱动, 很是不爽,遂研究如何禁用触摸板。
BIOS 和 系统设置里面都找过,没有相关设置选项,最后采用了脚本控制的方法

先用代码:xinput --list
查找触摸板的id,如我的 ⎡ Virtual core pointer                          id=

小应用发布 - google 代理搜索

FZ程序动态2012-11-22 17:54
google 代理搜索, 搜索敏感关键字防止被中断 
url : http://www.fzblog.net/gproxysearch

(waring * 本程序仅供学习和研究使用,切勿用于非法用途,使用此程序产生的一切法律后果与本人无关)



Chrome扩展-网页选区截图工具已开发完成,欢迎使用

Extension2012-09-06 09:38
Chrome扩展-网页选取截图工具已开发完成,欢迎使用.

因为提交到google webstore 要付5美金, 付款很不方便, 所以就没有提交了, 自个开发自个用吧,有需要的同学可以在这里下载:

http://www.fzblog.net/public/web_area_screenshot.crx

---
已经提交到360极速浏览器, 地址:
https://ext.chrome.360.cn/webstore/detail/hnkenianebcpinilegnjdidhlmmelbbg

截图:

jquery动态载入css文件,兼容各浏览器(Applying stylesheets dynamically with jQuery)

js技巧2012-08-30 13:23
用jquery动态载入css文件,可以这样做:

代码如下 $("head").append("<link rel='stylesheet' href='xxxxx/style.css' type='text/css' media='screen' />");
但是这只能在非IE下使用, 所以在IE下得这样写:

代码如下 document.createStyleSheet('xxxxx/style.css');
综合起来就是:

代码如下

wordpress 在任意地方include核心库 (How to include wp-load.php from any location?)

Wordpress2012-08-30 10:04
 之前想要在任意地方使用wordpress的核心库, 只需要用这段代码就行:

代码如下 ......
require_once('../../../wp-load.php');
......
但是新的版本就不行了,会提示某个函数不存在, 比如:

Fatal error: Call to undefined function wp_redirect() in /home/secret/public_html/wp-admin/admin.php on line 33

经过研究,在新的版本里面只要这样做,即可实现:

代码如下 global $wp_rewrite,$wpdb,$wp,$wp_query

php imap 实例

php2012-08-30 09:51
公司有个项目需求, 需要将编辑收到的邮件内容自动加入wordpress某个类别里面, 花了半天时间终于研究出来了, 采用了IMAP来实现, 然后服务器定时运行脚本, 后来公司IT说邮件服务器是exchange的,不支持IMAP, 所以项目不得不停止, 现贴出代码,以供参考.

php代码 <?php /**  * Automatically add emailed user submissions into the DYAC Submissions Queue  * Version 1.0.0

Pure CSS speech bubbles[转]

css技巧2012-07-31 13:11
Pure CSS speech bubblesBy Nicolas GallagherThe demo page for Pure CSS speech bubbles.For a detailed explanation view the CSS file. It is heavily commented.All examples use simple, semantic HTML. No empty elements, no unnecessary extra elements, no JavaScript, no images (apart from that Twitter logo). Have a look at the source code.
 /* ============================================================================================================================== BUBBLE WITH

wordpress实现文章归档(archive), 新旧日期,URL Rewrite功能

Wordpress2012-07-05 14:52
最近项目需要将wordpress文章归档,并且要能获取下一个归档日期和上一个归档日期, 并且URL需要重写为 http://www.xxxx.com/archive/ddmmyy/, 查了下wordpress文章,发现没有内置类似的功能,只好自己动手了:

1. URL Rewrite add_action( 'init', 'website_rewrite' ); function website_rewrite(){        

css使用自定义字体,兼容各种浏览器

css技巧2012-07-05 12:22
代码如下@font-face {  font-family: 'MyWebFont'; src: url('webfont.eot'); /* IE9 Compat Modes */ src: url('webfont.eot?#iefix')
Copyright © 風之紫色, All Rights Reserved.Theme by 風之紫色.Style as Facebook.
Time:0.09117s,Mem1.644544M
FZ 1.0   Author : 風之紫色