«

»

用css实现两个div并排

快抢沙发

新建一个html文档
在名为worp的div下有left和right的div,完整源代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
#worp {
padding: 0px;
width: 800px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
#worp #left {
background-color: #0000CC;
margin: 0px;
padding: 0px;
float: left;
width: 400px;
height: 100px;
}
#worp #right {
background-color: #FF0000;
float: right;
height: 100px;
width: 400px;
}

-->
</style>
</head>

<body>
<div id="worp">
<div id="left">此处显示 id "left" 的内容</div>
<div id="right">此处显示 id "left" 的内容</div>
</div>
</body>
</html>
2011.12.31
H
阅读全文...

java编写五子棋

快抢沙发

Gobang.java的源代码如下

import java.io.*;
public class Gobang
{
	//定义一个二维数组来充当棋盘
	private String[][] board;
	//定义棋盘的大小
	private static int BOARD_SIZE = 15;
	public void initBoard()
	{
		//初始化棋盘数组
		board = new String[BOARD_SIZE][BOARD_SIZE];
		//把每个元素赋为"╋",用于在控制台画出棋盘
		for (int i = 0 ; i < BOARD_SIZE ; i++)
		{
			for ( int j = 0 ; j < BOARD_SIZE ; j++)
			{
				board[i][j] = "╋";
			}
		}
	}
	//在控制台输出棋盘的方法
	public void printBoard()
	{
		//打印每个数组元素
		for (int i = 0 ; i < BOARD_SIZE ; i++)
		{
			for ( int j = 0 ; j < BOARD_SIZE ; j++)
			{
				//打印数组元素后不换行
				System.out.print(board[i][j]);
			}
			//每打印完一行数组元素后输出一个换行符
			System.out.print("\n");
		}
	}
    public static void main(String[] args)throws Exception
    {
        Gobang gb = new Gobang();
		gb.initBoard();
		gb.printBoard();
		System.out.println("请输入您下棋的座标,应以x,y的格式:");
		//这是用于获取键盘输入的方法
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String inputStr = null;
		//br.readLine():每当在键盘上输入一行内容按回车,刚输入的内容将被br读取到。
		while ((inputStr = br.readLine()) != null)
		{
			//将用户输入的字符串以逗号(,)作为分隔符,分隔成2个字符串
			String[] posStrArr = inputStr.split(",");
			//将2个字符串转换成用户下棋的座标
			int xPos = Integer.parseInt(posStrArr[0]);
			int yPos = Integer.parseInt(posStrArr[1]);
			//把对应的数组元素赋为"●"。
			gb.board[xPos - 1][yPos - 1] = "●";
			/*
			 电脑随机生成2个整数,作为电脑下棋的座标,赋给board数组。
			 还涉及
				1.座标的有效性,只能是数字,不能超出棋盘范围
				2.如果下的棋的点,不能重复下棋。
				3.每次下棋后,需要扫描谁赢了
			 */
			gb.printBoard();
			System.out.println("请输入您下棋的座标,应以x,y的格式:");
		}
    }
}

效果图
java编写五子棋

2011.12.30
H
阅读全文...

支持原创,不喜欢山寨

以前比较喜欢用腾讯的东西,不是因为好,而是因为我懒,喜欢一个账号搞定一切,但是大家都知道,腾讯乃山寨之王,很多东西都是被动的模仿,没有太多的创新,喜好搞一些点亮图标的花哨的东西来吸引人,并且超级喜欢用腾讯的筒子们一般都是娱乐性的,没太大技术含量,没意思。相信广大网友和我有同感吧,做出来好的东西出来了,不要害怕,只要自己的东西足够好,不断创新,及时被大公司山寨了,还是有市场的。

2011.12.27
H
阅读全文...

咋感觉skype不敌阿里通

今天试了试网络电话,用阿里通送的6毛钱打了下电话,不错,也没有延时,只是显示的号码不是自己的,让人感觉不得劲,当然其实skype网络电话也是这样的。试阿里通的时候就想到了大名鼎鼎的skype,skype里面没钱,于是充了33元,也不错。
可是再经过无意间发现,在对方手机在上网(用的是手机流量,wifi没试)的时候,skype打不通,阿里通却可以,晕死,早知道充值阿里通得了。

2011.12.25
H
阅读全文...

CSDN数据库泄露门

快抢沙发
继12月21日CSDN网站用户数据库被泄露后,12月22日,网上曝出QQ邮箱、人人网、天涯 、开心网、多玩、世纪佳缘、珍爱网、美空网、百合网、178、7K7K、当当、网易邮箱等知名网站也采用明文密码,用户数据资料被放到网上公开下载

在线查询:你的密码遭泄露了么?http://0bad.com/csdn.php

黑客泄露出的用户信息

12月22日消息,昨日CSDN 600万用户密码被黑客公布,涉及包括网易邮箱、QQ邮箱、人人网在等多家网站。今日早间黑客又上传多玩网、178、7k7k等用户信息,涉及的用户资料在5000万以上,涉及的用户正在被要求修改密码。

昨日CSDN在对外声明中称,“近日发生了CSDN用户数据库泄露事件,您的用户密码可能被公开。我们恳切地请您修改CSDN相关密码,如果您在其他网站也使用同一密码。请一定同时修改相关网站的密码。”

在被盗涉及的原因和注册时间上,CSDN表示,“被盗的号码主要2009年4月以前的用户,这些用户明当时是采取明文,但部分明文密码未清理;2010年8月底清理掉了所有明文密码。所以从2010年9月开始全部都是安全的,9月之前的有可能不安全。”

此次涉及的包括人人网、网易邮箱、QQ邮箱等,在600万用户中,有260万用户使用网易邮箱。网易邮件事业部副总经理莫子睿称,昨日晚间已经对以上用户进行弹窗提示,要求用户通过修改密码、绑定手机等方式进行隐私保护。莫子睿推断,黑客可能是利用了数据库软件的漏洞,建议用户增强用户的密码强度,用特殊字符、大小写增加破解强度,但是此次是明文泄露,对此帮助不大,黑客可以直接看到密码。

人人公司方面称,已对存在风险的用户有弹窗提示,要求修改密码,与手机号进行绑定。

黑客的曝光行为并未有停止现象,今日早间,包括多玩、178、7k7k等游戏用户资料被黑客爆出,网上甚至出现了用户信息的下载地址,可以通过迅雷等软件进行下载。

人人要求修改网站登录密码

从黑客外露的截图上可知,各个主流的用户网站信息均被暴露,涉及社交、微博、即时通讯等内容。安全专家建议修改新的登录密码。

Original resource:Click here

2011.12.22
H
阅读全文...

还原混淆的javascript代码

今天在浏览逍遥网(www.xoyo.com)的时候,在页面底部发现了网站的用户行为采集代码

<script src=”http://counter.kds.xoyo.com/kds2_record.js” type=”text/javascript” charset=”utf-8″></script>

打开“http://counter.kds.xoyo.com/kds2_record.js”后,发现下面这段代码:

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?”:e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!”.replace(/^/,String)){while(c–){d[e(c)]=k1||e(c)}k=[function(e){return d[e]}];e=function(){return’\\w+’};c=1};while(c–){if(k1){p=p.replace(new RegExp(‘\\b’+e(c)+’\\b’,'g’),k1)}}return p}(’3 1r=d C();3 y=d C;3 o=\’\';a Q(X){m 15.1s(15.1q()*X)+1}a 1i(){3 f=”-1″,n=l;6(n.A&&n.A.8){G(3 7=0;7<n.A.8;7++){6(n.A[7].1p.19(\’1e 1d\’)!=-1){f=n.A[7].1m.B(\’1e 1d \’)[1];1c}}}D 6(S.17){G(3 7=10;7>=2;7–){1n{3 1g=1o(“d 17(\’1b.1b.”+7+”\’);”);6(1g){f=7+\’.0\’;1c}}1t(e){}}}6(f==”-1″)m f;D m f.w(0,f.19(“.”)+2)}a 16(){3 F=”";3E=l.M.B(“;”);6(E.8<4)m”";G(3 i=4;i<E.8;i++){F+=E[i]+”,”}m F.w(0,F.8-2)}3 j=l.1u()?1:-1;3 5=d 1z();5[0]=l.1l;6(5[0]==”1A”)
{3 9=l.M;5[1]=9.w(9.P(” “)+1,9.8);5[0]=5[1].w(0,5[1].P(“/”));5[1]=9.w(9.P(“/”)+1,9.8)}D 6(5[0]==”1y 1x 1v”){5[1]=l.M.B(“;”)[1]}6(!J(\’I\’)){o=y.1w()+\’\'+Q(Z);H=1;z(\’I\’,o);z(\’O\’,H)}D{o=J(\’I\’);H=1B(J(\’O\’))+1;z(\’I\’,o);z(\’O\’,H)}a z(q,L)
{3 1h=d C();1h=d C(y.1k(),y.1j(),y.1E()+1);3 18=d C(1X,12,14);k.U=q+”=”+11(L)+”; Y=”+18.20()+”;”}a J(q){3 R=k.U.B(“; “);G(3 i=0;i<R.8;i++){3 T=R[i].B(“=”);6(q==T[0])m 1C(T[1])}}a 1T(q){k.U=q+”=”+11(L)+”; Y=1S, 14 1W 21 23:W:W 1Z;”}a 13(1f)
{3 N=”1Y://N.22.1U.1Q/1H.1I”;k.1G(“<1F 1D=\\”"+N+”?h=”+g(1R.1J.1K)+”&r=”+g(S.k.1P)+”&t=”+g(S.k.1O)+”&s=”+K.1a+”x”+K.V+”&c=”+K.1N+”&j=”+j+”&f=”+1i()+”&1L=”+g(16())
+”&p=”+1f+”&b=”+g(5[0])+”&v=”+g(5[1])+”&1M”+Q(Z)+”&u=”+o+”\\” 1a=\\”0\\” V=\\”0\\”>”)}13(1V)’,62,128,’|||var||brower|if|ii|length|browerInfo|function|||new|||encodeURIComponent||||
document|navigator|return||_kds2_u||sName||||||substring||_kds2_nt|SetCookie|plugins|split|Date|else|ua|plugin|
for|_kds2_v|_kds2_uName|GetCookie|screen|sValue|userAgent|counter|_kds2_times|lastIndexOf|rand|aCookie|window|
aCrumb|cookie|height|59|num|expires|999999999||escape||sendColection|31|Math|getPlugin|ActiveXObject|expiration|
indexOf|width|ShockwaveFlash|break|Flash|Shockwave|pid|fl|_kds2_tt|getFlash|getMonth|getFullYear|appName|description|
try|eval|name|random|pageOpen|floor|catch|javaEnabled|Explorer|getTime|Internet|Microsoft|Array|Netscape|
parseInt|unescape|src|getDate|img|write|ds2rd|php|location|href|pl|rd|colorDepth|title|referrer|com|top|Fri|
DelCookie|xoyo|_kds2_p|Dec|9999|http|GMT|toGMTString|1999|kds|’.split(‘|’),0,{}))

明显代码被混淆了,但是从最后那些规律的变量名来看,我们完全可以将其还原为原来的样子。这种加密只是看起来很乱,实际上还原的过程可能会简单的超乎你的想象。

我们发现最外面有一层eval(),eval函数接受一个字符串参数,并将字符串作为代码执行。那我们就新建一个HTML文件,将其中的eval替换成alert。因为eval括号里的那一串不管多么复杂,最终都要返回一个字符串,而这个字符串正是我们需要的。

新建一个文本文件,输入以下内容(方便起见,省略了HTML部分的基本结构,但是这段代码在实际执行中不会出现任何问题):

<script>
 alert(function(p,a,c,k,e,d){e=function(c){return(c<a?”:e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c

+29):c.toString(36))};if(!”.replace(/^/,String)){while(c–){d[e(c)]=k||e(c)}k=[function(e){return d

[e]}];e=function(){return’\\w+’};c=1};while(c–){if(k){p=p.replace(new RegExp(‘\\b’+e(c)+’\\b’,'g’),k)}}return

p}(’3 1r=d C();3 y=d C;3 o=\’\';a Q(X){m 15.1s(15.1q()*X)+1}a 1i(){3 f=”-1″,n=l;6(n.A&&n.A.8){G(3 7=0;7<n.A.8;7++)

{6(n.A[7].1p.19(\’1e 1d\’)!=-1){f=n.A[7].1m.B(\’1e 1d \’)[1];1c}}}D 6(S.17){G(3 7=10;7>=2;7–){1n{3 1g=1o(“d 17

(\’1b.1b.”+7+”\’);”);6(1g){f=7+\’.0\’;1c}}1t(e){}}}6(f==”-1″)m f;D m f.w(0,f.19(“.”)+2)}a 16(){3 F=”";3 E=l.M.B

(“;”);6(E.8<4)m”";G(3 i=4;i<E.8;i++){F+=E[i]+”,”}m F.w(0,F.8-2)}3 j=l.1u()?1:-1;3 5=d 1z();5[0]=l.1l;6(5[0]==”1A”){3

9=l.M;5[1]=9.w(9.P(” “)+1,9.8);5[0]=5[1].w(0,5[1].P(“/”));5[1]=9.w(9.P(“/”)+1,9.8)}D 6(5[0]==”1y 1x 1v”){5[1]=l.M.B

(“;”)[1]}6(!J(\’I\’)){o=y.1w()+\’\'+Q(Z);H=1;z(\’I\’,o);z(\’O\’,H)}D{o=J(\’I\’);H=1B(J(\’O\’))+1;z(\’I\’,o);z(\’O

\’,H)}a z(q,L){3 1h=d C();1h=d C(y.1k(),y.1j(),y.1E()+1);3 18=d C(1X,12,14);k.U=q+”=”+11(L)+”; Y=”+18.20()+”;”}a J

(q){3 R=k.U.B(“; “);G(3 i=0;i<R.8;i++){3 T=R[i].B(“=”);6(q==T[0])m 1C(T[1])}}a 1T(q){k.U=q+”=”+11(L)+”; Y=1S, 14 1W

21 23:W:W 1Z;”}a 13(1f){3 N=”1Y://N.22.1U.1Q/1H.1I”;k.1G(“<1F 1D=\\”"+N+”?h=”+g(1R.1J.1K)+”&r=”+g(S.k.1P)+”&t=”+g

(S.k.1O)+”&s=”+K.1a+”x”+K.V+”&c=”+K.1N+”&j=”+j+”&f=”+1i()+”&1L=”+g(16())+”&p=”+1f+”&b=”+g(5[0])+”&v=”+g(5

[1])+”&1M”+Q(Z)+”&u=”+o+”\\” 1a=\\”0\\” V=\\”0\\”>”)}13(1V)’,62,128,’|||var||brower|if|ii|length|browerInfo|

function|||new|||encodeURIComponent||||document|navigator|return||_kds2_u||sName||||||substring||_kds2_nt|

SetCookie|plugins|split|Date|else|ua|plugin|for|_kds2_v|_kds2_uName|GetCookie|screen|sValue|userAgent|counter|

_kds2_times|lastIndexOf|rand|aCookie|window|aCrumb|cookie|height|59|num|expires|999999999||escape||sendColection|

31|Math|getPlugin|ActiveXObject|expiration|indexOf|width|ShockwaveFlash|break|Flash|Shockwave|pid|fl|_kds2_tt|

getFlash|getMonth|getFullYear|appName|description|try|eval|name|random|pageOpen|floor|catch|javaEnabled|Explorer|

getTime|Internet|Microsoft|Array|Netscape|parseInt|unescape|src|getDate|img|write|ds2rd|php|location|href|pl|rd|

colorDepth|title|referrer|com|top|Fri|DelCookie|xoyo|_kds2_p|Dec|9999|http|GMT|toGMTString|1999|kds|’.split(‘|’),0,

{}))
 </script>

在浏览器中打开,我们看到一个警告框,框内有以下内容:

var pageOpen=new Date();var _kds2_nt=new Date;var _kds2_u=”;function rand(num){return Math.floor(Math.random()*num)+1}function getFlash(){var f=”-1″,n=navigator;if(n.plugins&&n.plugins.length){for(var ii=0;ii<n.plugins.length;ii++){if(n.plugins[ii].name.indexOf(‘Shockwave Flash’)!=-1){f=n.plugins[ii].description.split(‘Shockwave Flash ‘)[1];break}}}else if(window.ActiveXObject){for(var ii=10;ii>=2;ii–){try{var fl=eval(“new ActiveXObject(‘ShockwaveFlash.ShockwaveFlash.”+ii+”‘);”);if(fl){f=ii+’.0′;break}}catch(e){}}}if(f==”-1″)return f;else return f.substring(0,f.indexOf(“.”)+2)}function getPlugin(){var plugin=”";var ua=navigator.userAgent.split(“;”);if(ua.length<4)return”";for(var i=4;i<ua.length;i++){plugin+=ua[i]+”,”}return plugin.substring(0,plugin.length-2)}var j=navigator.javaEnabled()?1:-1;var brower=new Array();brower[0]=navigator.appName;if(brower[0]==”Netscape”){var browerInfo=navigator.userAgent;brower[1]=browerInfo.substring(browerInfo.lastIndexOf(” “)+1,browerInfo.length);brower[0]=brower[1].substring(0,brower[1].lastIndexOf(“/”));brower[1]=browerInfo.
substring(browerInfo.lastIndexOf(“/”)+1,browerInfo.length)}else if(brower[0]==”Microsoft Internet Explorer”){brower[1]=navigator.userAgent.split(“;”)[1]}if(!GetCookie(‘_kds2_uName’)){_kds2_u=_kds2_nt.getTime()+”+rand(999999999);_kds2_v=1;SetCookie(‘_kds2_uName’,_kds2_u);SetCookie(‘_kds2_times’,_kds2_v)}
else{_kds2_u=GetCookie(‘_kds2_uName’);_kds2_v=parseInt(GetCookie(‘_kds2_times’))+1;SetCookie(‘_kds2_uName’,_kds2_u);
SetCookie(‘_kds2_times’,_kds2_v)}function SetCookie(sName,sValue){var _kds2_tt=new Date();_kds2_tt=new Date(_kds2_nt.getFullYear(),_kds2_nt.getMonth(),_kds2_nt.getDate()+1);var expiration=new Date(9999,12,31);document.cookie=sName+”=”+escape(sValue)+”; expires=”+expiration.toGMTString()+”;”}function GetCookie(sName)
{var aCookie=document.cookie.split(“; “);for(var i=0;i<aCookie.length;i++){var aCrumb=aCookie[i].split(“=”);if(sName==aCrumb[0])return unescape(aCrumb[1])}}function DelCookie(sName){document.cookie=sName+”=”+escape(sValue)+”; expires=Fri, 31 Dec 1999 23:59:59 GMT;”}function sendColection(pid){var counter=”http://counter.kds.xoyo.com/ds2rd.php”;document.write(“<img src=\”"+counter+”?h=”+encodeURIComponent(top.location.href)+”&r=”+encodeURIComponent(window.document.referrer)+”&t=”+encodeURIComponent
(window.document.title)+”&s=”+screen.width+”x”+screen.height+”&c=”+screen.colorDepth+”&j=”+j+”&f=”+getFlash()+”&pl=”
+encodeURIComponent(getPlugin())+”&p=”+pid+”&b=”+encodeURIComponent(brower[0])+”&v=”+encodeURIComponent(brower[1])+”&rd”
+rand(999999999)+”&u=”+_kds2_u+”\” width=\”0\” height=\”0\”>”)}sendColection(_kds2_p)

我们看到代码已经被还原,变量名等都是正确的,但是由于没有合理的缩进,阅读起来十分困难,这个问题我们使用Einar Lielmanis的“Online javascript beautifier”来解决。将上面还原后的代码粘贴到文本框中,单击“Beautify javascript”,我们得到了以下的结果:

var pageOpen = new Date();
var _kds2_nt = new Date;
var _kds2_u = '';
function rand(num) {
    return Math.floor(Math.random() * num) + 1
}
function getFlash() {
    var f = "-1",
        n = navigator;
    if (n.plugins && n.plugins.length) {
        for (var ii = 0; ii < n.plugins.length; ii++) {
            if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {
                f = n.plugins[ii].description.split('Shockwave Flash ')[1];
                break
            }
        }
    } else if (window.ActiveXObject) {
        for (var ii = 10; ii >= 2; ii--) {
            try {
                var fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + ii + "');");
                if (fl) {
                    f = ii + '.0';
                    break
                }
            } catch (e) {}
        }
    }
    if (f == "-1") return f;
    else return f.substring(0, f.indexOf(".") + 2)
}
function getPlugin() {
    var plugin = "";
    var ua = navigator.userAgent.split(";");
    if (ua.length < 4) return "";
    for (var i = 4; i < ua.length; i++) {
        plugin += ua[i] + ","
    }
    return plugin.substring(0, plugin.length - 2)
}
var j = navigator.javaEnabled() ? 1 : -1;
var brower = new Array();
brower[0] = navigator.appName;
if (brower[0] == "Netscape") {
    var browerInfo = navigator.userAgent;
    brower[1] = browerInfo.substring(browerInfo.lastIndexOf(" ") + 1, browerInfo.length);
    brower[0] = brower[1].substring(0, brower[1].lastIndexOf("/"));
    brower[1] = browerInfo.substring(browerInfo.lastIndexOf("/") + 1, browerInfo.length)
} else if (brower[0] == "Microsoft Internet Explorer") {
    brower[1] = navigator.userAgent.split(";")[1]
}
if (!GetCookie('_kds2_uName')) {
    _kds2_u = _kds2_nt.getTime() + '' + rand(999999999);
    _kds2_v = 1;
    SetCookie('_kds2_uName', _kds2_u);
    SetCookie('_kds2_times', _kds2_v)
} else {
    _kds2_u = GetCookie('_kds2_uName');
    _kds2_v = parseInt(GetCookie('_kds2_times')) + 1;
    SetCookie('_kds2_uName', _kds2_u);
    SetCookie('_kds2_times', _kds2_v)
}
function SetCookie(sName, sValue) {
    var _kds2_tt = new Date();
    _kds2_tt = new Date(_kds2_nt.getFullYear(), _kds2_nt.getMonth(), _kds2_nt.getDate() + 1);
    var expiration = new Date(9999, 12, 31);
    document.cookie = sName + "=" + escape(sValue) + "; expires=" + expiration.toGMTString() + ";"
}
function GetCookie(sName) {
    var aCookie = document.cookie.split("; ");
    for (var i = 0; i < aCookie.length; i++) {
        var aCrumb = aCookie[i].split("=");
        if (sName == aCrumb[0]) return unescape(aCrumb[1])
    }
}
function DelCookie(sName) {
    document.cookie = sName + "=" + escape(sValue) + "; expires=Fri, 31 Dec 1999 23:59:59 GMT;"
}
function sendColection(pid) {
    var counter = "http://counter.kds.xoyo.com/ds2rd.php";
    document.write("")
}
sendColection(_kds2_p)

至此,代码内容一目了然,代码混淆成功还原!

Original resource:Click here

2011.12.19
H
阅读全文...

测试贵站的投稿功能

快抢沙发
感谢: jinicgood 的供稿.

如题

2011.12.15
H
阅读全文...

你创建的wordpress页面(非默认模板)没问题吗

快抢沙发

你在用wordpress创建页面时,如果不用默认模板,比如用如图中得guestbook模板,你的guestbook模板页面是怎么创建出来的?
创建wordpress页面模板

你是用你的主题文件夹里面的page.php吗?你是怎么做的?
是直接复制吗,然后删除一些很明显的东西吗?
比如我的主题下得page.php的源代码是

<?php get_header(); ?>
<div id="content"><script type="text/javascript">$("#home-loading div").animate({width:"300px"})</script>
	<div id="postlist">
	 <div id="xhpost-single">
        <b class="post-single_b1"></b><b class="post-single_b2 post-single_d1"></b><b class="post-single_b3 post-single_d1" ></b><b class="post-single_b4 post-single_d1"></b>
		<div class="post-single">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="post-title"><h1><?php the_title(); ?></h1></div>
		<div class="post-content"><?php the_content(__('Read More')); ?></div>
		</div>
		<?php endwhile; endif; ?>
	    <b class="post-single_b4b post-single_d1"></b><b class="post-single_b3b post-single_d1"></b><b class="post-single_b2b post-single_d1"></b><b class="post-single_b1b"></b>
    </div>
	<div id="xhcomments">
    <b class="comments_b1"></b><b class="comments_b2 comments_d1"></b><b class="comments_b3 comments_d1" ></b><b class="comments_b4 comments_d1"></b>
		<div id="comments"><?php comments_template('', true); ?></div>
	<b class="comments_b4b comments_d1"></b><b class="comments_b3b comments_d1"></b><b class="comments_b2b comments_d1"></b><b class="comments_b1b"></b>
    </div>
<script type="text/javascript">$("#home-loading div").animate({width:"400px"})</script>
	</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

我想提醒大家的是,大家不要盲目复制这里面的东西,否则容易出现css错位,比如我的网站的一个自定义页面http://www.daozhao.com/mail出现的底部的div的右边框没有显示细线,这样显得不太好看,经过今天的认真查找才发现原来是我的这个自定义模板的文件里面有点小问题
复制的时候应该去掉page.php里面的

<div id="content">

<?php get_footer(); ?>

如果只在乎是否不影响css的话,只去掉

<?php get_footer(); ?>

就行了,不信可以试试,查看源文件会发现类似这样的代码


   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>邮箱 - 道招 - 网页编程,手机编程,应用编程</title>

<meta name="keywords" content="道招,道招网,daozhao,daozhao.com,网页编程,web编程,手机编程,应用编程,windows编程">

<meta name="Description" content="道招网关注互联网及移动终端最新动态和前沿科技,学习探讨编程开发技术。">

<link rel="stylesheet" type="text/css" media="all" href="http://www.daozhao.com/wp-content/themes/Simple-M/style.css" />

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.daozhao.com/feed" />

<link href="http://www.daozhao.com/favicon.ico" rel="Shortcut Icon">

<link href="http://www.daozhao.com/favicon.ico" rel="Bookmark">

<link rel='stylesheet' id='admin-bar-css'  href='http://www.daozhao.com/wp-includes/css/admin-bar.css?ver=20111209' type='text/css' media='all' /> 
<link rel='stylesheet' id='external-links-css'  href='http://www.daozhao.com/wp-content/plugins/sem-external-links/sem-external-links.css?ver=20090903' type='text/css' media='all' /> 
<script type='text/javascript' src='http://www.daozhao.com/wp-includes/js/jquery/jquery.js?ver=1.7.1'></script> 
<script type='text/javascript' src='http://www.daozhao.com/wp-includes/js/swfobject.js?ver=2.2'></script> 
<script type='text/javascript' src='http://www.daozhao.com/wp-content/plugins/page-flip-image-gallery/js/flippingbook.js?ver=0.5.10'></script> 
<link rel='canonical' href='http://www.daozhao.com/mail' /> 
<script type="text/javascript"> 
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	  
	   // the IE-manier
	   window.clipboardData.setData("Text", meintext);
	  
	   // waarschijnlijk niet de beste manier om Moz/NS te detecteren;
	   // het is mij echter onbekend vanaf welke versie dit precies werkt:
	   }
	   else if (window.netscape)
	   {
	  
	   // dit is belangrijk maar staat nergens duidelijk vermeld:
	   // you have to sign the code to enable this, or see notes below
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	  
	   // maak een interface naar het clipboard
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	  
	   // maak een transferable
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	  
	   // specificeer wat voor soort data we op willen halen; text in dit geval
	   trans.addDataFlavor('text/unicode');
	  
	   // om de data uit de transferable te halen hebben we 2 nieuwe objecten
	   // nodig om het in op te slaan
	   var str = new Object();
	   var len = new Object();
	  
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	  
	   var copytext=meintext;
	  
	   str.data=copytext;
	  
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	  
	   var clipid=Components.interfaces.nsIClipboard;
	  
	   if (!clip) return false;
	  
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	  
	   }
	} catch (e) {alert('因为安全策略的原因,此项功能已被您的浏览器禁止。关闭此窗口,然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script> 
<!-- Generated By Show-Useragent 1.0.4 - http://zlz.im/show-useragent --> 
<link rel="stylesheet" href="http://www.daozhao.com/wp-content/plugins/show-useragent/show-useragent.css" type="text/css" media="screen" /> 
   <link rel="stylesheet" href="http://www.daozhao.com/wp-content/plugins/tdo-mini-forms/tdomf-style-form.css" type="text/css" media="screen" /> 
   
<!-- START of style generated by wp-thumbnails 3.2.1 ,powered by niaolei.org.cn --> 
<link rel="stylesheet" href="http://www.daozhao.com/wp-content/plugins/wp-thumbnails/style.css" type="text/css" media="screen" /> 
<!-- END of style generated by wp-thumbnails 3.2.1 ,powered by niaolei.org.cn --> 
<style type="text/css" media="print">#wpadminbar { display:none; }</style> 
<style type="text/css" media="screen"> 
	html { margin-top: 28px !important; }
	* html body { margin-top: 28px !important; }
</style> 
<meta id="syntaxhighlighteranchor" name="syntaxhighlighter-version" content="3.1.3" /> 
<!-- wp thread comment 1.4.9.4.002 --> 
<style type="text/css" media="screen"> 
.editComment, .editableComment, .textComment{

	display: inline;

}

.comment-childs{

	border: 1px solid #999;

	margin: 5px 2px 2px 4px;

	padding: 4px 2px 2px 4px;

	background-color: white;

}

.chalt{

	background-color: #E2E2E2;

}

#newcomment{

	border:1px dashed #777;width:90%;

}

#newcommentsubmit{

	color:red;

}

.adminreplycomment{

	border:1px dashed #777;

	width:99%;

	margin:4px;

	padding:4px;

}

.mvccls{

	color: #999;

}

			
</style> 
<script type="text/javascript" src="http://www.daozhao.com/wp-content/themes/Simple-M/jquery.min.1.4.0.js"></script>

<script type="text/javascript" src="http://www.daozhao.com/wp-content/themes/Simple-M/js.daozhao.js"></script>

<meta name="google-site-verification" content="0tlC73F2oaxGIN7WBCQNgiTLwHBHh7j9WoMsF5SrJMU" />

<!--[if IE 6]>

	<script type="text/javascript" src="http://letskillie6.googlecode.com/svn/trunk/letskillie6.zh_CN.pack.js"></script>

<![endif]-->

<!--[if IE 9 ]>

<meta name="application-name" content="道招网" />

<meta name="msapplication-tooltip" content="道招 - 网页编程,手机编程,应用编程" />

<meta name="msapplication-task" content="name=登录;action-uri=http://www.daozhao.com/wp-login.php;icon-uri=http://www.daozhao.com/favicon.ico" />

<meta name="msapplication-task" content="name=留言;action-uri=http://www.daozhao.com/guestbook;icon-uri=http://www.daozhao.com/favicon.ico" />

<meta name="msapplication-navbutton-color" content="#FF6600" />

<link rel="shortcut icon" href="http://www.daozhao.com/favicon.ico" type="image/x-icon" />

<![endif]--> 

<meta name="wumiiVerification" content="94ae2c51-e105-4284-aa41-d34c6cd355ca" />

<meta name="baidu_union_verify" content="5fc5a36ec2159debcd11a0535d809008">

<meta property="qc:admins" content="1441502247641720176375" />

</head>

<body>

<div id="header">

<div id="home-loading"><div></div></div>

<script type="text/javascript">$("#home-loading div").animate({width:"150px"})</script>

	<div id="logo"><a  href="http://www.daozhao.com" title="道招">道招</a>

	<div class="description">道招网关注互联网及移动终端最新动态和前沿科技,学习探讨编程开发技术。</div></div>

 <div id="social"><a  href="http://www.daozhao.com/feed" target="_blank" alt="订阅道招网" border="0"><img src="http://www.daozhao.com/wp-content/themes/Simple-M/images/feed.gif" alt="订阅道招网" border="0"></a> <a  href="http://weibo.com/enjoyitwithme" target="_blank" title="道招网新浪微博" class="external" rel="nofollow"><img src="http://www.daozhao.com/wp-content/themes/Simple-M/images/sina.gif" alt="道招网新浪微博" border="0"></a> <a  href="http://t.qq.com/share_it_to_you" target="_blank" title="道招网腾讯微博" class="external" rel="nofollow"><img src="http://www.daozhao.com/wp-content/themes/Simple-M/images/tencentmicroblog.gif" alt="道招网腾讯微博" border="0"></a></div>

</div>

<script type="text/javascript"> $("#home-loading div").animate({width:"200px"}) </script>



<!-- 页面导航菜单 START -->

<div id="xhmenu">

<b class="menu_b1"></b><b class="menu_b2 menu_d1"></b><b class="menu_b3 menu_d1" ></b><b class="menu_b4 menu_d1"></b>

<div id="menu">

<div class="menub">

      <ul>

<li><a  title="首页" href="http://www.daozhao.com/">首页</a></li>

	<li class="cat-item cat-item-66"><a  href="http://www.daozhao.com/category/infomation" title="关注互联网及移动终端动态">动态</a> 
<ul class='children'> 
	<li class="cat-item cat-item-102"><a  href="http://www.daozhao.com/category/infomation/comment" title="以自己的认识对事物,事件的点评">点评</a> 
</li> 
	<li class="cat-item cat-item-39"><a  href="http://www.daozhao.com/category/infomation/news" title="互联网相关资讯">资讯</a> 
</li> 
</ul> 
</li> 
	<li class="cat-item cat-item-54"><a  href="http://www.daozhao.com/category/platform" title="各平台使用技术">平台</a> 
<ul class='children'> 
	<li class="cat-item cat-item-127"><a  href="http://www.daozhao.com/category/platform/android" title="android系统就是牛">Android</a> 
</li> 
	<li class="cat-item cat-item-542"><a  href="http://www.daozhao.com/category/platform/linux" title="研究linux平台">Linux</a> 
</li> 
	<li class="cat-item cat-item-601"><a  href="http://www.daozhao.com/category/platform/mac" title="查看 Mac 下的所有文章">Mac</a> 
</li> 
	<li class="cat-item cat-item-591"><a  href="http://www.daozhao.com/category/platform/windows-technology" title="查看 Windows 下的所有文章">Windows</a> 
</li> 
	<li class="cat-item cat-item-6"><a  href="http://www.daozhao.com/category/platform/wordpress" title="wordpress技术">WordPress</a> 
</li> 
	<li class="cat-item cat-item-279"><a  href="http://www.daozhao.com/category/platform/mobile" title="手机相关技术">手机</a> 
</li> 
	<li class="cat-item cat-item-130"><a  href="http://www.daozhao.com/category/platform/site" title="建站帮手">网站</a> 
</li> 
</ul> 
</li> 
	<li class="cat-item cat-item-600"><a  href="http://www.daozhao.com/category/language" title="各编程语言技术">语言</a> 
<ul class='children'> 
	<li class="cat-item cat-item-213"><a  href="http://www.daozhao.com/category/language/asp" title="asp技术">Asp</a> 
</li> 
	<li class="cat-item cat-item-514"><a  href="http://www.daozhao.com/category/language/css" title="css技术">CSS</a> 
</li> 
	<li class="cat-item cat-item-231"><a  href="http://www.daozhao.com/category/language/java" title="java技术">Java</a> 
</li> 
	<li class="cat-item cat-item-27"><a  href="http://www.daozhao.com/category/language/php" title="PHP常用函数和技术">PHP</a> 
</li> 
	<li class="cat-item cat-item-354"><a  href="http://www.daozhao.com/category/language/sql" title="SQL的技术">SQL</a> 
</li> 
</ul> 
</li> 
	<li class="cat-item cat-item-150"><a  href="http://www.daozhao.com/category/resource" title="分享道招网得到的资源">资源</a> 
<ul class='children'> 
	<li class="cat-item cat-item-244"><a  href="http://www.daozhao.com/category/resource/other" title="其它资源">其它</a> 
</li> 
	<li class="cat-item cat-item-180"><a  href="http://www.daozhao.com/category/resource/game" title="游戏资源">游戏</a> 
</li> 
	<li class="cat-item cat-item-302"><a  href="http://www.daozhao.com/category/resource/movie" title="道招网ftp上的电影">电影</a> 
</li> 
	<li class="cat-item cat-item-43"><a  href="http://www.daozhao.com/category/resource/soft" title="实用软件">软件</a> 
</li> 
	<li class="cat-item cat-item-327"><a  href="http://www.daozhao.com/category/resource/music" title="分享美妙的音乐">音乐</a> 
</li> 
</ul> 
</li> 
	<li class="cat-item cat-item-485"><a  href="http://www.daozhao.com/category/daozhao" title="道招网自己的一些东东">道招</a> 
<ul class='children'> 
	<li class="cat-item cat-item-477"><a  href="http://www.daozhao.com/category/daozhao/no-theme-article" title="随便写点写东西">手札</a> 
</li> 
	<li class="cat-item cat-item-1"><a  href="http://www.daozhao.com/category/daozhao/history-of-site" title="道招网的更新日志">站史</a> 
</li> 
</ul> 
</li> 
<li class="page_item page-item-25"><a  href="http://www.daozhao.com/tool">工具</a> 
<ul class='children'> 
	<li class="page_item page-item-1488"><a  href="http://www.daozhao.com/tool/runcode">Runcode</a></li> 
</ul> 
</li> 
<li class="page_item page-item-227"><a  href="http://www.daozhao.com/app">应用</a></li> 
<li class="page_item page-item-1076"><a  href="http://www.daozhao.com/study">学习</a></li> 
<li class="page_item page-item-27"><a  href="http://www.daozhao.com/album">相册</a></li> 
<li class="page_item page-item-1005 current_page_item"><a  href="http://www.daozhao.com/mail">邮箱</a></li> 
<li class="page_item page-item-1388"><a  href="http://www.daozhao.com/daozhaopan">网盘</a></li> 
<li class="page_item page-item-207"><a  href="http://www.daozhao.com/guestbook">留言</a></li> 
<li class="page_item page-item-1652"><a  href="http://www.daozhao.com/post">投稿</a></li> 
<li><a  rel="nofollow" href="http://www.daozhao.com/?random" title="随便逛逛">闲逛</a></li><div id="close-sidebar"><li class="close-bar" style="float:right;"><a  rel="nofollow" href="http://www.daozhao.com/guestbook" title="隐藏侧边栏">隐藏侧边栏</a></li>

</ul>

</div>

</div>

<!-- 页面导航菜单 END -->

<b class="menu_b4b menu_d1"></b><b class="menu_b3b menu_d1"></b><b class="menu_b2b menu_d1"></b><b class="menu_b1b"></b>

</div>

<div id="notice_wrap">

	<div id="notice">

<ul><li><a  href="http://www.daozhao.com/wordpress-android-post.html">用wordpress的Android客户端发博文</a></li>

<li><a  href="http://www.daozhao.com/make-touming-favicon.html">推荐一个在线制作透明背景favicon.ico网站</a></li>

<li><a  href="http://www.daozhao.com/tx3-need-line-up.html">天下3到底有多火啊,要排队了</a></li>

<li><a  href="http://www.daozhao.com/java-num2rmb.html">java将数字按货币形式输出</a></li>

<li><a  href="http://www.daozhao.com/msn-live-passport.html">其他邮箱注册到msn live passport</a></li>

<li><a  href="http://www.daozhao.com/nuffneng-test-ads.html">拿福能结束千人挑战,测试非常网广告</a></li>

<li><a  href="http://www.daozhao.com/money-eggs.html">丈夫的1825元钱和4个鸡蛋</a></li>

<li><a  href="http://www.daozhao.com/husband-to-son.html">老公,你得喊我喊妈!</a></li>

<li><a  href="http://www.daozhao.com/ios-bug.html">曝ios的bug,求鉴定</a></li>

<li><a  href="http://www.daozhao.com/android-contact-vcard.html">最简单的android手机联系人vcard(vcf后缀格式)规范格式</a></li>

</ul>

		<p id="prev">&laquo;</p>

		<p id="next">&raquo;</p>

	</div>

	<div id="search"><form method="get" id="searchform" action="http://www.daozhao.com">

<input type="text" value="输入内容按Enter" name="s" id="s" onfocus="this.value = this.value == this.defaultValue ? '' : this.value" onblur="this.value = this.value == '' ? this.defaultValue : this.value"/>

</form></div>

</div>   
<div id="content"> 
<div id="content"><script type="text/javascript">$("#home-loading div").animate({width:"300px"})</script> 
	<div id="postlist"> 
		<div id="xhpost-single"> 
        <b class="post-single_b1"></b><b class="post-single_b2 post-single_d1"></b><b class="post-single_b3 post-single_d1" ></b><b class="post-single_b4 post-single_d1"></b> 
		<div class="post-single"> 
			<div class="post-title"><h1>邮箱</h1></div> 
<div class="post-messages"><div class="post-messages-1">2011.08.21 </div> 
			<div class="post-messages-2"><a  href="http://www.daozhao.com/author/sp" title="由 sp 发布" rel="author">sp</a></div> 
		</div> 
			<div class="post-content"><style> 
.bizmail_loginpanel{font-size:12px;width:300px;height:auto;background:#ffffff;}
.bizmail_LoginBox{padding:10px 15px;}
.bizmail_loginpanel h3{padding-bottom:5px;margin:0 0 5px 0;border-bottom:1px solid #cccccc;font-size:14px;}
.bizmail_loginpanel form{margin:0;padding:0;}
.bizmail_loginpanel input.text{font-size:12px;width:100px;height:20px;margin:0 2px;border:1px solid #C3C3C3;border-color:#7C7C7C #C3C3C3 #C3C3C3 #9A9A9A;}
.bizmail_loginpanel .bizmail_column{height:28px;}
.bizmail_loginpanel .bizmail_column label{display:block;float:left;width:30px;height:24px;line-height:24px;font-size:12px;}
.bizmail_loginpanel .bizmail_column .bizmail_inputArea{float:left;width:240px;}
.bizmail_loginpanel .bizmail_column span{font-size:12px;word-wrap:break-word;margin-left: 2px;line-height:200%;}
.bizmail_loginpanel .bizmail_SubmitArea{margin-left:30px;clear:both;}
.bizmail_loginpanel .bizmail_SubmitArea a{font-size:12px;margin-left:5px;}
.bizmail_loginpanel select{width:110px;height:20px;margin:0 2px;}
</style> 
<script type="text/javascript" src="http://exmail.qq.com/zh_CN/htmledition/js_biz/outerlogin.js"  charset="gb18030"></script> 
<script type="text/javascript"> 
writeLoginPanel({domainlist:"daozhao.com", mode:"vertical"});
</script> 
<br /><br /></div> 
<br /> 
<div class="frontback"><div class="next">Next:<a  href="http://www.daozhao.com/study" rel="next">学习</a></div><div class="pre">Previous:<a  href="http://www.daozhao.com/app" rel="prev">应用</a></div></div> 
	</div> 
	<b class="post-single_b4b post-single_d1"></b><b class="post-single_b3b post-single_d1"></b><b class="post-single_b2b post-single_d1"></b><b class="post-single_b1b"></b> 
    </div> 
		<div id="xhcomments"> 
    <b class="comments_b1"></b><b class="comments_b2 comments_d1"></b><b class="comments_b3 comments_d1" ></b><b class="comments_b4 comments_d1"></b> 
	<div id="comments"> 
	<ol class="commentlist"> 
			<li class="comment byuser comment-author-sp bypostauthor even thread-even depth-1"  id="li-comment-209" > 
		<div id="comment-209" class="comment-body"> 
			<div class="commentmeta"><img title='' alt='' src='http://www.daozhao.com/wp-content/avatar/86b07540e72371c46cf7e565a7989888.jpg' class='avatar avatar-32 photo' height='32' width='32' /></div> 
							<div class="commentmetadata">&nbsp;&nbsp;2011/08/21 - 22:48&nbsp;&nbsp;<span>1F</span></div> 
			<div class="reply"><a  class="comment-reply-link" href="/mail?replytocom=209#respond" onclick="return addComment.moveForm("comment-209", "209", "respond", "1005")">@</a></div> 
			<div class="vcard">sp <img src="http://daozhao.com/wp-content/plugins/show-useragent/flags/cn.png" title="China" alt="China" class="country-flag" /> <img src='http://daozhao.com/wp-content/plugins/show-useragent/browsers/firefox.png' title='Mozilla Firefox 6.0' alt='Mozilla Firefox' width='14px' height='14px' class='browser-icon' />   <img src='http://daozhao.com/wp-content/plugins/show-useragent/browsers/windows_win7.png' title='Windows 7' alt='Windows' width='14px' height='14px' class='os-icon' />  <span class="country-flag"><img src="http://daozhao.com/wp-content/plugins/show-useragent/flags/cn.png" title="China" alt="China" /></span> <span class="WB-OS"><img src="http://daozhao.com/wp-content/plugins/show-useragent/browsers/firefox.png" title="Mozilla Firefox" alt="Mozilla Firefox" /> <img src="http://daozhao.com/wp-content/plugins/show-useragent/browsers/windows_win7.png" title="Windows" alt="Windows" /></span></div> 
			<p>有事者可以给我留言或者发Email,Email地址 <a  href="http://www.daozhao.com/?r=mailto:i@daozhao.com">i@daozhao.com</a></p> 
<p class="thdrpy">[<a href="javascript:void(0)" onclick="movecfm(event,209,1,'sp');">回复</a>]</p>		</div>	
</li> 
	</ol> 
	<div class="pagenavi"></div> 
 
<div class="clear"></div> 
<div id="respond"> 
<form action="http://www.daozhao.com/wp-comments-post.php" method="post" id="commentform"> 
<h3 class="clearfix"><span id="cancel-comment-reply"><a  rel="nofollow" id="cancel-comment-reply-link" href="/mail#respond" style="display:none;">点击这里取消回复。</a></span></h3> 
 
 
<p class="smilies">当前您登录的用户名为 <a  href="http://www.daozhao.com/wp-admin/profile.php">sp</a>, <a  href="http://www.daozhao.com/wp-login.php?action=logout&#038;redirect_to=http%3A%2F%2Fwww.daozhao.com%2Fmail&#038;_wpnonce=3a8ebd8ad8" title="登出这个帐号">退出 &raquo;</a></p> 
<script type="text/javascript" language="javascript"> 
/* <![CDATA[ */
    function grin(tag) {
    	var myField;
    	tag = ' ' + tag + ' ';
        if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {
    		myField = document.getElementById('comment');
    	} else {
    		return false;
    	}
    	if (document.selection) {
    		myField.focus();
    		sel = document.selection.createRange();
    		sel.text = tag;
    		myField.focus();
    	}
    	else if (myField.selectionStart || myField.selectionStart == '0') {
    		var startPos = myField.selectionStart;
    		var endPos = myField.selectionEnd;
    		var cursorPos = endPos;
    		myField.value = myField.value.substring(0, startPos)
    					  + tag
    					  + myField.value.substring(endPos, myField.value.length);
    		cursorPos += tag.length;
    		myField.focus();
    		myField.selectionStart = cursorPos;
    		myField.selectionEnd = cursorPos;
    	}
    	else {
    		myField.value += tag;
    		myField.focus();
    	}
    }
/* ]]> */
</script> 
<!-- DON NOT REMOVE THIS CopyRight Information!! --> 
<!-- RenRen Simley by Microhu http://www.microhu.com/ --> 
<div class="wp-smiley"><a href="javascript:grin(':!!!:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_exclamation.gif" alt="exclamation" /></a> 
<a href="javascript:grin(':ymy:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_youmuyou.gif" alt=":ymy:" /></a> 
<a href="javascript:grin(':sbq:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_sbq.gif" alt=":sbq:" /></a> 
<a href="javascript:grin(':sx:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_shaoxiang.gif" alt=":sx:" /></a> 
<a href="javascript:grin(':gl:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_gl.gif" alt=":gl:" /></a> 
<a href="javascript:grin(':bgl:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_bgl.gif" alt=":bgl:" /></a> 
<a href="javascript:grin(':kbz:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_kbz.gif" alt=":kbz:" /></a> 
<a href="javascript:grin(':arrow:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_arrow.gif" alt=":arrow:" /></a> 
<a href="javascript:grin(':lol:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_lol.gif" alt=":lol:" /></a> 
<a href="javascript:grin(':smile:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_smile.gif" alt=":smile:" /></a> 
<a href="javascript:grin(':gg:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_gg.gif" alt=":gg:" /></a> 
<a href="javascript:grin(':?:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_question.gif" alt=":?:" /></a> 
<a href="javascript:grin(':razz:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_razz.gif" alt=":razz:" /></a> 
<a href="javascript:grin(':wink:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_wink.gif" alt=":wink:" /></a> 
<a href="javascript:grin(':idea:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_idea.gif" alt=":idea:" /></a> 
<a href="javascript:grin(':see:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_see.gif" alt=":see:" /></a> 
<a href="javascript:grin(':evil:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_evil.gif" alt=":evil:" /></a> 
<a href="javascript:grin(':!:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_exclaim.gif" alt=":!:" /></a> 
<a href="javascript:grin(':oops:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_redface.gif" alt=":oops:" /></a> 
<a href="javascript:grin(':grin:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_biggrin.gif" alt=":grin:" /></a> 
<a href="javascript:grin(':eek:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_surprised.gif" alt=":eek:" /></a> 
<a href="javascript:grin(':shock:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_eek.gif" alt=":shock:" /></a> 
<a href="javascript:grin(':???:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_confused.gif" alt=":???:" /></a> 
<a href="javascript:grin(':cool:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_cool.gif" alt=":cool:" /></a> 
<a href="javascript:grin(':mad:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_mad.gif" alt=":mad:" /></a> 
<a href="javascript:grin(':twisted:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_twisted.gif" alt=":twisted:" /></a> 
<a href="javascript:grin(':roll:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_rolleyes.gif" alt=":roll:" /></a> 
<a href="javascript:grin(':neutral:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_neutral.gif" alt=":neutral:" /></a> 
<a href="javascript:grin(':cry:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_cry.gif" alt=":cry:" /></a> 
<a href="javascript:grin(':mrgreen:')"><img src="/wp-content/themes/Simple-M/images/smilies/icon_mrgreen.gif" alt=":mrgreen:" /></a></div><div id="author_textarea"> 
<textarea name="comment" id="comment" cols="100" rows="14" tabindex="4" onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};"></textarea> 
<input name="submit" type="submit" id="submit" tabindex="5" value="确认提交 (Ctrl+Enter)" /> 
允许的标签:&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </div> 
 <input type='hidden' name='comment_post_ID' value='1005' id='comment_post_ID' /> 
<input type='hidden' name='comment_parent' id='comment_parent' value='0' /> 
 
<input type="hidden" id="_wp_unfiltered_html_comment" name="_wp_unfiltered_html_comment" value="e07c84be03" /><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="73a002891e" /></p><p><input type="hidden" id="comment_reply_ID" name="comment_reply_ID" value="0" /><input type="hidden" id="comment_reply_dp" name="comment_reply_dp" value="0" /></p><div id="cancel_reply" style="display:none;"><a href="javascript:void(0)" onclick="movecfm(null,0,1,null);" style="color:red;">点击取消回复</a></div><p><input type="checkbox" name="comment_mail_notify" id="comment_mail_notify" value="comment_mail_notify" checked="checked" style="width: auto;" /><label for="comment_mail_notify" style="display: inline;">有人回复时邮件通知我</label></p><script type="text/javascript"> 
/* <![CDATA[ */
var commentformid = "commentform";
var USERINFO = "sp";
var atreply = "authorlink";
/* ]]> */
</script> 
<script type="text/javascript" src="http://www.daozhao.com/wp-content/plugins/wordpress-thread-comment/wp-thread-comment.js.php?jsver=common"></script> 
</form> 
</div> 
</div> 
	<b class="comments_b4b comments_d1"></b><b class="comments_b3b comments_d1"></b><b class="comments_b2b comments_d1"></b><b class="comments_b1b"></b> 
    </div> 
<script type="text/javascript">$("#home-loading div").animate({width:"400px"})</script> 
	</div> 
<div id="xhsidebar"> 
<b class="sidebar_b1"></b><b class="sidebar_b2 sidebar_d1"></b><b class="sidebar_b3 sidebar_d1" ></b><b class="sidebar_b4 sidebar_d1"></b> 
<div id="sidebar"> 
    <form action="http://list.qq.com/cgi-bin/qf_compose_send" target="_blank" method="post">

    <input type="hidden" name="t" value="qf_booked_feedback">

    <input type="hidden" name="id" value="804ec9dec8e1dee37213bb3a294a46aff2e19fc67cb2b349">

    <input id="to" name="to" type="text"  value="@" style="width:250px;font-size:14px;padding:2px 3px; height:18px;border:1px solid #F2F2F2;background:#FFFFFF;">

    <input type="submit" value="输入邮箱地址订阅道招网最新内容" style="width:258px;font-size:14px;padding:2px 3px;background:#F2F2F2;line-height:22px">

    </form><h3>刚刚发言</h3> 
<ul class="recentcomments"> 
<li><img src="http://www.daozhao.com/wp-content/avatar/f67f3e1016b8e67aa4d7c96393499119.jpg" alt="ikanon" title="ikanon" class="avatar" /><a  rel="nofollow" href="/?r=http://www.ikanon.cn" class="rc-info">ikanon</a><br /><a  href="http://www.daozhao.com/guestbook#comment-780" title=" ikanon 在《留言》上的评论">ikanon来催博主更新啦~~ <img src='http://www.daozhao.com/wp-content/themes/Simple-M/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </a></li> 
<li><img src="http://www.daozhao.com/wp-content/avatar/f67f3e1016b8e67aa4d7c96393499119.jpg" alt="ikanon" title="ikanon" class="avatar" /><a  rel="nofollow" href="/?r=http://www.ikanon.cn" class="rc-info">ikanon</a><br /><a  href="http://www.daozhao.com/win7-pc-cant-manage.html#comment-767" title=" ikanon 在《win7 计算机右键“管理“没反应》上的评论"> <img src='http://www.daozhao.com/wp-content/themes/Simple-M/images/smilies/icon_exclamation.gif' alt=':!!!:' class='wp-smiley' />  个别ghost版本系统确实存在上面问题。估计跟精简有关。此文比较有营养!</a></li> 
<li><img src="http://www.daozhao.com/wp-content/avatar/9d242bf1e888fdec60c2d62f4f07fffe.jpg" alt="CppLive 编程在线" title="CppLive 编程在线" class="avatar" /><a  rel="nofollow" href="/?r=http://www.cpplive.com" class="rc-info">CppLive 编程在线</a><br /><a  href="http://www.daozhao.com/wordpress-android-post.html#comment-743" title=" CppLive 编程在线 在《用wordpress的Android客户端发博文》上的评论">道招兄打造了史上最短博文,前来撒花祝贺!~ <img src='http://www.daozhao.com/wp-content/themes/Simple-M/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </a></li> 
<li><img src="http://www.daozhao.com/wp-content/avatar/f67f3e1016b8e67aa4d7c96393499119.jpg" alt="ikanon" title="ikanon" class="avatar" /><a  rel="nofollow" href="/?r=http://www.ikanon.cn" class="rc-info">ikanon</a><br /><a  href="http://www.daozhao.com/java-print-circle.html#comment-725" title=" ikanon 在《java 用math类的方法划近似圆》上的评论"> <img src='http://www.daozhao.com/wp-content/themes/Simple-M/images/smilies/icon_youmuyou.gif' alt=':ymy:' class='wp-smiley' />  依然技术流~!</a></li> 
<li><img src="http://www.daozhao.com/wp-content/avatar/9d242bf1e888fdec60c2d62f4f07fffe.jpg" alt="CppLive 编程在线" title="CppLive 编程在线" class="avatar" /><a  rel="nofollow" href="/?r=http://www.cpplive.com" class="rc-info">CppLive 编程在线</a><br /><a  href="http://www.daozhao.com/wow-bigfoot-extension.html#comment-685" title=" CppLive 编程在线 在《魔兽世界大脚插件也有时不给力啊》上的评论">@i, 哦,Thank you all the same~ <img src='http://www.daozhao.com/wp-content/themes/Simple-M/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> </a></li> 
<li><img src="http://www.daozhao.com/wp-content/avatar/9d242bf1e888fdec60c2d62f4f07fffe.jpg" alt="CppLive 编程在线" title="CppLive 编程在线" class="avatar" /><a  rel="nofollow" href="/?r=http://www.cpplive.com" class="rc-info">CppLive 编程在线</a><br /><a  href="http://www.daozhao.com/wow-bigfoot-extension.html#comment-679" title=" CppLive 编程在线 在《魔兽世界大脚插件也有时不给力啊》上的评论">道招兄有无觅相关文章的邀请码没,求啊 <img src='http://www.daozhao.com/wp-content/themes/Simple-M/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' /> </a></li> 
</ul><script type="text/javascript">$("#loading div").animate({width:"550px"})</script> 
			<div class="widget_recent_entries">		<h3><span>近期文章</span></h3>		<ul> 
				<li><a  href="http://www.daozhao.com/java-testarrays.html" title="java测试数组">java测试数组</a></li> 
				<li><a  href="http://www.daozhao.com/java-num2rmb.html" title="java将数字按货币形式输出">java将数字按货币形式输出</a></li> 
				<li><a  href="http://www.daozhao.com/upgrade-wordpress-3-3.html" title="网站更新至wordpress3.3">网站更新至wordpress3.3</a></li> 
				<li><a  href="http://www.daozhao.com/win7-pc-cant-manage.html" title="win7 计算机右键“管理“没反应">win7 计算机右键“管理“没反应</a></li> 
				<li><a  href="http://www.daozhao.com/java-applet-circle.html" title="java applet指定半径画圆">java applet指定半径画圆</a></li> 
				<li><a  href="http://www.daozhao.com/wordpress-android-post.html" title="用wordpress的Android客户端发博文">用wordpress的Android客户端发博文</a></li> 
				<li><a  href="http://www.daozhao.com/java-print-circle.html" title="java 用math类的方法划近似圆">java 用math类的方法划近似圆</a></li> 
				<li><a  href="http://www.daozhao.com/java-autoconversion.html" title="java转换数据类型">java转换数据类型</a></li> 
				<li><a  href="http://www.daozhao.com/java-apidoc-testjavadoc.html" title="java 使用apidoc生成api">java 使用apidoc生成api</a></li> 
				<li><a  href="http://www.daozhao.com/java-print-helloworld.html" title="java输出helloworld">java输出helloworld</a></li> 
				</ul> 
		</div><div class="widget_tag_cloud"><h3><span>标签集</span></h3><div class="tagcloud"><a  href="http://www.daozhao.com/tag/android-2" class="tag-link-529" title="4 个话题" style="font-size: 12.8888888889pt;">android</a> 
<a  href="http://www.daozhao.com/tag/applet" class="tag-link-400" title="3 个话题" style="font-size: 10.6666666667pt;">applet</a> 
<a  href="http://www.daozhao.com/tag/code" class="tag-link-74" title="3 个话题" style="font-size: 10.6666666667pt;">code</a> 
<a  href="http://www.daozhao.com/tag/cookies" class="tag-link-328" title="4 个话题" style="font-size: 12.8888888889pt;">cookies</a> 
<a  href="http://www.daozhao.com/tag/facebook" class="tag-link-46" title="2 个话题" style="font-size: 8pt;">facebook</a> 
<a  href="http://www.daozhao.com/tag/firefox" class="tag-link-61" title="2 个话题" style="font-size: 8pt;">firefox</a> 
<a  href="http://www.daozhao.com/tag/google" class="tag-link-62" title="9 个话题" style="font-size: 19.5555555556pt;">google</a> 
<a  href="http://www.daozhao.com/tag/iis" class="tag-link-16" title="3 个话题" style="font-size: 10.6666666667pt;">iis</a> 
<a  href="http://www.daozhao.com/tag/mysql" class="tag-link-367" title="3 个话题" style="font-size: 10.6666666667pt;">mysql</a> 
<a  href="http://www.daozhao.com/tag/oppo" class="tag-link-280" title="4 个话题" style="font-size: 12.8888888889pt;">oppo</a> 
<a  href="http://www.daozhao.com/tag/qq" class="tag-link-21" title="10 个话题" style="font-size: 20.4444444444pt;">QQ</a> 
<a  href="http://www.daozhao.com/tag/rewrite" class="tag-link-14" title="2 个话题" style="font-size: 8pt;">rewrite</a> 
<a  href="http://www.daozhao.com/tag/simple-m" class="tag-link-222" title="4 个话题" style="font-size: 12.8888888889pt;">simple-m</a> 
<a  href="http://www.daozhao.com/tag/tag" class="tag-link-15" title="2 个话题" style="font-size: 8pt;">tag</a> 
<a  href="http://www.daozhao.com/tag/ubuntu" class="tag-link-543" title="12 个话题" style="font-size: 22pt;">ubuntu</a> 
<a  href="http://www.daozhao.com/tag/utf-8" class="tag-link-195" title="3 个话题" style="font-size: 10.6666666667pt;">utf-8</a> 
<a  href="http://www.daozhao.com/tag/u%e7%9b%98" class="tag-link-558" title="3 个话题" style="font-size: 10.6666666667pt;">u盘</a> 
<a  href="http://www.daozhao.com/tag/virtualbox" class="tag-link-548" title="3 个话题" style="font-size: 10.6666666667pt;">virtualbox</a> 
<a  href="http://www.daozhao.com/tag/%e5%87%bd%e6%95%b0" class="tag-link-449" title="5 个话题" style="font-size: 14.6666666667pt;">函数</a> 
<a  href="http://www.daozhao.com/tag/%e5%88%b7%e6%9c%ba" class="tag-link-125" title="5 个话题" style="font-size: 14.6666666667pt;">刷机</a> 
<a  href="http://www.daozhao.com/tag/%e5%a4%96%e6%8c%82" class="tag-link-77" title="3 个话题" style="font-size: 10.6666666667pt;">外挂</a> 
<a  href="http://www.daozhao.com/tag/%e5%ad%97%e7%ac%a6%e4%b8%b2" class="tag-link-237" title="5 个话题" style="font-size: 14.6666666667pt;">字符串</a> 
<a  href="http://www.daozhao.com/tag/%e5%b9%bb%e7%81%af%e7%89%87" class="tag-link-254" title="3 个话题" style="font-size: 10.6666666667pt;">幻灯片</a> 
<a  href="http://www.daozhao.com/tag/%e5%bc%b9%e7%aa%97" class="tag-link-335" title="3 个话题" style="font-size: 10.6666666667pt;">弹窗</a> 
<a  href="http://www.daozhao.com/tag/%e5%be%ae%e5%8d%9a" class="tag-link-55" title="2 个话题" style="font-size: 8pt;">微博</a> 
<a  href="http://www.daozhao.com/tag/%e6%89%8b%e6%9c%ba" class="tag-link-304" title="3 个话题" style="font-size: 10.6666666667pt;">手机</a> 
<a  href="http://www.daozhao.com/tag/%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e" class="tag-link-51" title="3 个话题" style="font-size: 10.6666666667pt;">搜索引擎</a> 
<a  href="http://www.daozhao.com/tag/%e6%94%b6%e5%bd%95" class="tag-link-184" title="4 个话题" style="font-size: 12.8888888889pt;">收录</a> 
<a  href="http://www.daozhao.com/tag/%e6%95%b0%e6%8d%ae%e5%ba%93" class="tag-link-366" title="5 个话题" style="font-size: 14.6666666667pt;">数据库</a> 
<a  href="http://www.daozhao.com/tag/%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b" class="tag-link-401" title="3 个话题" style="font-size: 10.6666666667pt;">数据类型</a> 
<a  href="http://www.daozhao.com/tag/%e6%95%b0%e7%bb%84" class="tag-link-215" title="4 个话题" style="font-size: 12.8888888889pt;">数组</a> 
<a  href="http://www.daozhao.com/tag/%e6%96%b0%e6%b5%aa" class="tag-link-158" title="3 个话题" style="font-size: 10.6666666667pt;">新浪</a> 
<a  href="http://www.daozhao.com/tag/%e6%96%b0%e6%b5%aa%e5%be%ae%e5%8d%9a" class="tag-link-189" title="4 个话题" style="font-size: 12.8888888889pt;">新浪微博</a> 
<a  href="http://www.daozhao.com/tag/%e6%9b%b4%e6%96%b0" class="tag-link-133" title="3 个话题" style="font-size: 10.6666666667pt;">更新</a> 
<a  href="http://www.daozhao.com/tag/%e6%b3%a2%e5%85%8b%e5%9f%8e%e5%b8%82" class="tag-link-282" title="3 个话题" style="font-size: 10.6666666667pt;">波克城市</a> 
<a  href="http://www.daozhao.com/tag/%e7%99%be%e5%ba%a6" class="tag-link-52" title="10 个话题" style="font-size: 20.4444444444pt;">百度</a> 
<a  href="http://www.daozhao.com/tag/%e7%ba%a2%e9%92%bb" class="tag-link-22" title="2 个话题" style="font-size: 8pt;">红钻</a> 
<a  href="http://www.daozhao.com/tag/%e7%bc%96%e7%a0%81" class="tag-link-191" title="3 个话题" style="font-size: 10.6666666667pt;">编码</a> 
<a  href="http://www.daozhao.com/tag/%e8%81%94%e9%80%9a" class="tag-link-349" title="4 个话题" style="font-size: 12.8888888889pt;">联通</a> 
<a  href="http://www.daozhao.com/tag/%e8%85%be%e8%ae%af" class="tag-link-20" title="7 个话题" style="font-size: 17.3333333333pt;">腾讯</a> 
<a  href="http://www.daozhao.com/tag/%e8%af%ad%e6%b3%95" class="tag-link-232" title="3 个话题" style="font-size: 10.6666666667pt;">语法</a> 
<a  href="http://www.daozhao.com/tag/%e8%b0%b7%e6%ad%8c" class="tag-link-53" title="7 个话题" style="font-size: 17.3333333333pt;">谷歌</a> 
<a  href="http://www.daozhao.com/tag/%e9%80%9a%e8%ae%af%e5%bd%95" class="tag-link-141" title="4 个话题" style="font-size: 12.8888888889pt;">通讯录</a> 
<a  href="http://www.daozhao.com/tag/%e9%81%93%e6%8b%9b" class="tag-link-3" title="3 个话题" style="font-size: 10.6666666667pt;">道招</a> 
<a  href="http://www.daozhao.com/tag/%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e5%9f%ba%e7%a1%80" class="tag-link-236" title="6 个话题" style="font-size: 16.2222222222pt;">面向对象基础</a></div> 
</div><div class="wztj"> 
<h3>网站统计</h3> 
<ul class="tj"> 
<li>∴日志总数: 293 篇</li> 
<li>∴评论总数: 263 条</li> 
<li>∴网站运行: 214 天</li> 
<li>∴标签总数: 580 个</li> 
<li>∴页面总数: 9 个</li> 
<li>∴链接总数: 4 条</li> 
</ul> 
</div> 
<script type="text/javascript">$("#loading div").animate({width:"650px"})</script> 
</div> 
<b class="sidebar_b4b sidebar_d1"></b><b class="sidebar_b3b sidebar_d1"></b><b class="sidebar_b2b sidebar_d1"></b><b class="sidebar_b1b"></b> 
</div> 
</div><div class="clear"></div> 
<!-- AdSense Manager v4.0.2 (0.348 seconds.) --><script type='text/javascript' src='http://www.daozhao.com/wp-includes/js/admin-bar.js?ver=20111130'></script> 
		<div id="wpadminbar" class="nojq nojs" role="navigation"> 
			<div class="quicklinks"> 
				<ul id="wp-admin-bar-root-default" class="ab-top-menu"> 
		<li id="wp-admin-bar-wp-logo" class="menupop"><a  class="ab-item" tabindex="10" 0="aria-haspopup="true"" href="http://www.daozhao.com/wp-admin/about.php" title="关于 WordPress"><span class="ab-icon"></span></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-wp-logo-default" class="ab-submenu"> 
		<li id="wp-admin-bar-about" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/about.php">关于 WordPress</a>		</li></ul><ul id="wp-admin-bar-wp-logo-external" class="ab-sub-secondary ab-submenu"> 
		<li id="wp-admin-bar-wporg" class=""><a  class="ab-item external external_icon" tabindex="10" href="http://cn.wordpress.org" rel="nofollow" target="_blank">WordPress.org</a>		</li> 
		<li id="wp-admin-bar-documentation" class=""><a  class="ab-item external external_icon" tabindex="10" href="http://codex.wordpress.org/zh-cn:Main_Page" rel="nofollow" target="_blank">文档</a>		</li> 
		<li id="wp-admin-bar-support-forums" class=""><a  class="ab-item external external_icon" tabindex="10" href="http://zh-cn.forums.wordpress.org/" rel="nofollow" target="_blank">支持论坛</a>		</li> 
		<li id="wp-admin-bar-feedback" class=""><a  class="ab-item external external_icon" tabindex="10" href="http://zh-cn.forums.wordpress.org/forum/suggestions" rel="nofollow" target="_blank">反馈</a>		</li></ul></div>		</li> 
		<li id="wp-admin-bar-site-name" class="menupop"><a  class="ab-item" tabindex="10" 0="aria-haspopup="true"" href="http://www.daozhao.com/wp-admin/">道招</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-site-name-default" class="ab-submenu"> 
		<li id="wp-admin-bar-dashboard" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/">仪表盘</a>		</li></ul><ul id="wp-admin-bar-appearance" class=" ab-submenu"> 
		<li id="wp-admin-bar-themes" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/themes.php">主题</a>		</li> 
		<li id="wp-admin-bar-widgets" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/widgets.php">小工具</a>		</li> 
		<li id="wp-admin-bar-menus" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/nav-menus.php">菜单</a>		</li></ul></div>		</li> 
		<li id="wp-admin-bar-comments" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/edit-comments.php" title="0 条评论待审"><span class="ab-icon"></span><span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-0">0</span></a>		</li> 
		<li id="wp-admin-bar-new-content" class="menupop"><a  class="ab-item" tabindex="10" 0="aria-haspopup="true"" href="http://www.daozhao.com/wp-admin/post-new.php" title="添加"><span class="ab-icon"></span><span class="ab-label">新建</span></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-new-content-default" class="ab-submenu"> 
		<li id="wp-admin-bar-new-post" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/post-new.php">文章</a>		</li> 
		<li id="wp-admin-bar-new-media" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/media-new.php">媒体</a>		</li> 
		<li id="wp-admin-bar-new-link" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/link-add.php">链接</a>		</li> 
		<li id="wp-admin-bar-new-page" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/post-new.php?post_type=page">页面</a>		</li> 
		<li id="wp-admin-bar-new-user" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/user-new.php">用户</a>		</li></ul></div>		</li> 
		<li id="wp-admin-bar-edit" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/post.php?post=1005&#038;action=edit">编辑页面</a>		</li></ul><ul id="wp-admin-bar-top-secondary" class="ab-top-secondary ab-top-menu"> 
		<li id="wp-admin-bar-search" class=" admin-bar-search"><div class="ab-item ab-empty-item" tabindex="-1"><form action="http://www.daozhao.com/" method="get" id="adminbarsearch"><input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" type="text" value="" maxlength="150" /><input type="submit" class="adminbar-button" value="搜索"/></form></div>		</li> 
		<li id="wp-admin-bar-my-account" class="menupop with-avatar"><a  class="ab-item" tabindex="10" 0="aria-haspopup="true"" href="http://www.daozhao.com/wp-admin/profile.php" title="我的账户">您好,sp<img alt='' src='http://0.gravatar.com/avatar/86b07540e72371c46cf7e565a7989888?s=16&amp;d=&amp;r=G' class='avatar avatar-16 photo' height='16' width='16' /></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-user-actions" class=" ab-submenu"> 
		<li id="wp-admin-bar-user-info" class=""><a  class="ab-item" tabindex="-1" href="http://www.daozhao.com/wp-admin/profile.php"><img alt='' src='http://0.gravatar.com/avatar/86b07540e72371c46cf7e565a7989888?s=64&amp;d=&amp;r=G' class='avatar avatar-64 photo' height='64' width='64' /><span class='display-name'>sp</span></a>		</li> 
		<li id="wp-admin-bar-edit-profile" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-admin/profile.php">编辑我的个人资料</a>		</li> 
		<li id="wp-admin-bar-logout" class=""><a  class="ab-item" tabindex="10" href="http://www.daozhao.com/wp-login.php?action=logout&#038;_wpnonce=3a8ebd8ad8">登出</a>		</li></ul></div>		</li></ul>			</div> 
		</div> 
 
		<script type="text/javascript">$("#home-loading div").animate({width:"700px"})</script> 
<div id="xhfooter"> 
<b class="footer_b1"></b><b class="footer_b2 footer_d1"></b><b class="footer_b3 footer_d1" ></b><b class="footer_b4 footer_d1"></b> 
<div id="footer"> 
<div style="display:none"> 
<script type="text/javascript"> 
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fdcc64061bd1e7afa6579846f463e6ac3' type='text/javascript'%3E%3C/script%3E"));
</script> 
<script language="javascript" type="text/javascript" src="http://js.users.51.la/5530549.js"></script></div> 
<ul> 
<li><a  href="http://www.daozhao.com/sitemap_baidu.xml" target="_blank">百度Sitemap</a></li> 
<li><a  href="http://www.daozhao.com/sitemap.xml" target="_blank">谷歌Sitemap</a></li> 
<li><a  href="/?r=http://tongji.baidu.com/" target="_blank">百度统计</a></li> 
<li><a  href="/?r=http://www.51.la/?5335018" target="_blank">网站统计</a></li> 
<li><a  href="/?r=http://www.miibeian.gov.cn/" target="_blank">鄂ICP备09005079号</a></li> 
<li><a  href="http://www.daozhao.com" title="道招">道招</a></li> 
<li><a  href="http://www.daozhao.com" title="daozhao">daozhao</a></li></ul> 
</div> 
<b class="footer_b4b footer_d1"></b><b class="footer_b3b footer_d1"></b><b class="footer_b2b footer_d1"></b><b class="footer_b1b"></b> 
</div> 
<div id="shangxia"><div id="shang"></div> 
<div id="xia"></div></div> 
<script type="text/javascript" src="http://www.daozhao.com/wp-content/themes/Simple-M/Simple-M.js"></script> 
<script type="text/javascript" src="http://www.daozhao.com/wp-content/themes/Simple-M/comments-ajax.js"></script> 
<script type="text/javascript">$("#loading div").animate({width:"800px"})</script> 
<div style="display:none;"><li><a  href="http://www.daozhao.com/sitemap_baidu.xml" title="sitemap_baidu">sitemap_baidu</a></li><div> 
<script type="text/javascript">$("#home-loading div").animate({width:"960px"},function(){ setTimeout(function(){$("#home-loading div").animate({opacity:'toggle'},900);},900); });</script> 
<script type="text/javascript">



  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-8940122-4']);

  _gaq.push(['_trackPageview']);



  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();



</script></body> 
</html>   
</div>   
 

里面有这样的问题

<div id="content"> 

出现两遍;
并且文件最后面

</body> 
</html>   

变成了

</body> 
</html>   
</div>   

大家快去自己检查下自己的页面的自定义模板吧

2011.12.15
H
阅读全文...

java测试数组

快抢沙发

java测试数组相等,复制数组等
TestArrays.java的源代码如下

import java.util.*;
public class TestArrays 
{
	public static void main(String[] args) 
	{
		//定义一个a数组
		int[] a=new int[]{3,4,5,6};
		//定义一个a2数组
		int[] a2=new int[]{3,4,5,6};
		//a数组和a2数组的长度相等,每个元素依次相等,将输出true
		System.out.println("a数组和a2数组是否相等:"+ Arrays.equals(a,a2));
		//通过复制a数组,生成一个新的b数组
		int[] b=Arrays.copyOf(a,6);
		System.out.println("a数组和b数组是否相等:"+Arrays.equals(a,b));
		//输出b数组的元素,将输出[3,4,5,6,0,0]
		System.out.println("b数组的元素为:"+Arrays.toString(b));
		//将b数组的第三个元素(包括)到第五个元素(不包括)赋为1
		Arrays.fill(b,2,4,1);
		//输出b数组的元素,将输出{3,4,1,1,0,0}
		System.out.println("b数组的元素为 :"+Arrays.toString(b));
		//对b数组进行排序
		Arrays.sort(b);
		//输出b数组的元素,将输出[0,0,1,1,3,4]
		System.out.println("b数组的元素为:"+Arrays.toString(b));
	}
}
2011.12.15
H
阅读全文...

java将数字按货币形式输出

快抢沙发

将类似于1960以壹仟玖佰陆拾的形式输出
Num2Rmb.java的源代码如下:

import java.util.Arrays;
public class Num2Rmb 
{
	private String[] hanArr={"零","壹","贰","叁","肆","伍","陆","柒","捌","玖","拾",};
	private String[] unitArr={"拾","佰","仟"};
	/**
	*把一个浮点数分解成整数部分和小数部分字符串
	*@param num需要被分解的浮点数
	*@return分解出来的整数部分和小数部分。第一个数组元素是整数部分,第二个数组元素是小数部分
	*/
	private String[] divide(double num)
	{
		//将一个浮点数强制类型转换为long,即得到它的整数部分
		long zheng=(long)num;
		//浮点数减去整数部分,得到小数部分,小数部分乘以100后再取整得到两位小数
		long xiao=Math.round((num-zheng)*100);
		//下面用了两个方法把整数转换为字符串
		return new String[]{zheng+"",String.valueOf(xiao)};
	}
	/**
	*把一个四位的数字字符串变成汉字字符串
	*@param numStr 需要被转换的四位的数字字符串
	*@return 四位的数字字符串被转换成的汉字字符串
	*/
	private String toHanStr(String numStr)
		{
		String result="";
		int numLen=numStr.length();
		//依次遍历数字字符串的每一位数字
		for (int i=0;i<numLen ;i++ )
		{
			//把char型数字转换成的int数字,因为他们的ASCII码值恰好相差48
			//因此把char型数字减去48得到int型数字,例如'4'被转换成4。
			int num=numStr.charAt(i)-48;
			//如果不是最后一个数字,而且数字不是零,则需要添加单位(仟、佰、拾)
			if (i !=numLen-1&&num!=0)
			{
				result +=hanArr[num]+unitArr[numLen-2-i];
			}
			//否则不要添加单位
			else
			{
				result +=hanArr[num];
			}
		}
		return result;
	}
	public static void main(String[] args) 
	{
		Num2Rmb nr = new Num2Rmb();
		//测试把一个浮点数分解成整数部分和小数部分
		System.out.println(Arrays.toString(nr.divide(236711125.123)));
		//测试把一个四位的数字字符串变成汉字字符
		System.out.println(nr.toHanStr("6019"));
	}
}
2011.12.15
H
阅读全文...

网站更新至wordpress3.3

快抢沙发

刚升级,使用中…

2011.12.14
H
阅读全文...

win7 计算机右键“管理“没反应

Win7 操作系统对计算机的管理打不开(及点了没反应)或者提示说“该文件没有与之关联的程序来执行该操作,请安装一个程序,或者,如果已安装程序,请在“默认程序”控制面板中创建关联”的解决方法:
请将以下内容复制粘贴到记事本文件中,然后把文件另存为reg文件,然后双击另存好的文件,当系统提示”是否导入注册表信息”时,点”是”。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command] 
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\ 
00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\ 
65,00,20,00,2f,00,73,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,\ 
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6f,00,\ 
6d,00,70,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,00,00,00

PS:远景找的的另一个方法

将以下内容复制粘贴到记事本文件中,然后把文件另存后缀为bat的文件,然后双击运行:

@echo off
REG ADD "HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command" /VE /T REG_EXPAND_SZ /D "mmc.exe %systemroot%\System32\compmgmt.msc" /F

两个方法均试过 没有任何问题

2011.12.08
H
阅读全文...

java applet指定半径画圆

快抢沙发

前一段时间做题,写了java 用math类的方法划近似圆,最近在网上发现有用通过网页输入半径画圆的。
java applet画圆
T10.java源代码如下

//编写一个APPLET程序,接受用户输入的一个半径值和一个圆心坐标XY,用*画出这个圆。


import java.awt.*;
import java.applet.*;
import java.awt.event.*;


public class T10 extends Applet implements ActionListener
{
	TextField tf=new TextField(10);
	TextField tx=new TextField(10);
	TextField ty=new TextField(10);
	int i=0;
	
	public void init()
	{
		add(tf);		
		tf.addActionListener(this);
	}
	public void paint(Graphics g)
	{
		//g.draw3DRect(i,i,i+50,i+50,true);		
		g.drawOval(i,i,i+50,i+50);
	}
	public void actionPerformed(ActionEvent e)
	{
		i=Integer.valueOf(tf.getText()).intValue();	
		repaint();
	}
}
2011.12.05
H
阅读全文...

用wordpress的Android客户端发博文

哈喽

2011.12.04
H
阅读全文...
  • sitemap_baidu