2004年08月02日

最近在学单片机,为什么我做的下载线就不能用??

2004年07月07日

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML>
<HEAD>
<TITLE> 清除html的垃圾代码</TITLE>
<script language=”javascript”>
    <!–
    function execRE(re,rp,content) {
        oReg=new RegExp(re,”ig”);
        r = content.replace(oReg, rp);
        return r;
    }
    function codeSweeper(content, mode)
    {
        switch(mode)
        {
            case “allhtml”:
                    // 清除所有html标签
                    content = execRE(“</?[^>]*>”, “”, content);
                    break;
                case “word”:
                    // 清除所有的xml标签
                    content = execRE(“<\\?xml[^>]*>”, “”, content);
                    // 清除所有的带名称空间的标签
                    content = execRE(“<\/?[a-z]+:[^>]*>”, “”, content);               
                    // 清除所有的class属性   
                    content = execRE(“(<[^>]+) class=[^ |^>]*([^>]*>)”, “$1 $2″, content);           
                    // 清除所有的style属性
                    content = execRE(“(<[^>]+) style=\”[^\"]*\”([^>]*>)”, “$1 $2″, content);
                    // 清除所有空的span标签
                    content = execRE(“<span[^>]*><\/span[^>]*>”, “”, content);                    
                    // 清除所有的多余span标签
                    content = execRE(“<span><span>”,”<span>”, content);                            
                    content = execRE(“</span></span>”,”</span>”, content);
                    // 清除所有的多余空白
                    content = execRE(“[ ]*>”, “>”, content);           
                    break;
                case “css”:
                    // 清除所有的class属性   
                    content = execRE(“(<[^>]+) class=[^ |^>]*([^>]*>)”, “$1 $2″, content);           
                    // 清除所有的style属性
                    content = execRE(“(<[^>]+) style=\”[^\"]*\”([^>]*>)”, “$1 $2″, content);
                    break;
                case “font”:
                    content = execRE(“</?font[^>]*>”, “”, content);
                    break;
                case “span”:
                    content = execRE(“</?span[^>]*>”,”",content);
                    break; 
                case “script”:
                    break; 
        }
        return content;
    }

    function onPaste() {
    }

    function PasteWordContent() {
        var oTextRange = editor.document.body.createTextRange() ;
        oTextRange.execCommand(“Paste”) ;

        CleanCode();
    }

    function Init()
    {
        editor.document.write(Code.value);
        editor.document.designMode=”On”;
        editor.document.onpaste = onPaste;
    }

    function getContent()
    {
        return editor.document.body.innerHTML;
    }

    function setContent(content)
    {
        editor.document.body.innerHTML = content;
        ViewCode();
    }

    function CleanCode()
    {
        setContent(codeSweeper(getContent(), cleanMode.options[cleanMode.selectedIndex].value));
    }

    function ViewCode()
    {
        Code.value = getContent();
    }

    // –>
</script>
</HEAD>

<BODY onload=”Init()”>

清除模式<select name=”cleanMode”>
    <option value=”allhtml”>所有html标签</option>
    <option value=”word” selected>word代码</option>
    <option value=”css”>样式表</option>
    <option value=”font”>font标签</option>
    <option value=”span”>span标签</option>
    <option value=”script”>不安全的script脚本</option>
</select>
<input type=”button” onclick=’CleanCode()’ value=”清除”/>
<input type=”button” onclick=’PasteWordContent()’ value=”粘贴代码(根据选择的模式自动清除垃圾代码)”/><br />
编辑器:<iframe  id=”editor”></IFRAME><p></p>
<textarea id=”Code” rows=”20″ cols=”50″>
<DIV align=center>
<TABLE class=MsoNormalTable style=”BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN: auto auto auto 14.4pt; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext” cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style=”page-break-inside: avoid”>
<TD style=”BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 495pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt” vAlign=top width=660 colSpan=2>
<H2 style=”MARGIN: 0cm 0cm 0pt”><SPAN lang=EN-US><FONT size=3>Page top</FONT></SPAN></H2></TD></TR>
<TR style=”HEIGHT: 193.3pt; page-break-inside: avoid”>
<TD style=”BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 126pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 193.3pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt” vAlign=top width=168>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>学员手册</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; mso-fareast-font-family: 黑体”><?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>个人信息查询</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; mso-fareast-font-family: 黑体”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>清单教室</SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0″><B><SPAN style=”FONT-FAMILY: 华文中宋; mso-ascii-font-family: ‘Times New Roman’; mso-hansi-font-family: ‘Times New Roman’”>理论学习篇</SPAN></B><B><SPAN lang=EN-US style=”mso-fareast-font-family: 华文中宋”><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0″><B><SPAN style=”FONT-FAMILY: 华文中宋; mso-ascii-font-family: ‘Times New Roman’; mso-hansi-font-family: ‘Times New Roman’”>实务学习篇</SPAN></B><B><SPAN lang=EN-US style=”mso-fareast-font-family: 华文中宋”><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36.15pt; mso-char-indent-count: 4.0″><B><SPAN style=”FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: ‘Times New Roman’; mso-hansi-font-family: ‘Times New Roman’”>招投标流程简介</SPAN></B><B><SPAN lang=EN-US style=”FONT-SIZE: 9pt; COLOR: blue; mso-bidi-font-size: 12.0pt”><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0″><SPAN style=”FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: ‘Times New Roman’; mso-hansi-font-family: ‘Times New Roman’”>完整工程实例详解</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; mso-char-indent-count: 4.0″><SPAN style=”FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: ‘Times New Roman’; mso-hansi-font-family: ‘Times New Roman’”>实务重难点分析</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>答疑室</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; mso-fareast-font-family: 黑体”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>资源库</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; mso-fareast-font-family: 黑体”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>评测中心</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; mso-fareast-font-family: 黑体”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN style=”FONT-SIZE: 12pt; FONT-FAMILY: 黑体; mso-ascii-font-family: ‘Times New Roman’”>实战寻宝</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; COLOR: green; mso-fareast-font-family: 黑体”><o:p></o:p></SPAN></P></TD>
<TD style=”BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 369pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 193.3pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt” vAlign=top width=492>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center” align=center><SPAN style=”FONT-SIZE: 18pt; COLOR: blue; FONT-FAMILY: 华文新魏; mso-bidi-font-size: 15.0pt; mso-font-kerning: 7.5pt; mso-ascii-font-family: ‘Times New Roman’”>招投标流程简介</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 18pt; COLOR: blue; mso-bidi-font-size: 15.0pt; mso-fareast-font-family: 华文新魏; mso-font-kerning: 7.5pt”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 30pt; mso-char-indent-count: 2.0″><SPAN style=”FONT-SIZE: 15pt; COLOR: black; FONT-FAMILY: 楷体_GB2312; mso-font-kerning: 7.5pt; mso-ascii-font-family: ‘Times New Roman’”>本课程通过对清单模式下招标、投标业务流程的简单描述与说明,向您介绍招投标过程中各个步骤与环节的操作办法,从而加深您对“清单规范”的理解,帮助您熟悉招投标的业务流程。</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 15pt; COLOR: black; mso-fareast-font-family: 楷体_GB2312; mso-font-kerning: 7.5pt”><o:p></o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; TEXT-ALIGN: right; mso-char-indent-count: 2.0″ align=right><SPAN style=”FONT-SIZE: 12pt; COLOR: green; FONT-FAMILY: 黑体; mso-bidi-font-size: 15.0pt; mso-font-kerning: 7.5pt; mso-ascii-font-family: ‘Times New Roman’”>开始学习</SPAN><SPAN lang=EN-US style=”FONT-SIZE: 12pt; COLOR: green; mso-fareast-font-family: 黑体”><o:p></o:p></SPAN></P></TD></TR>
<TR style=”page-break-inside: avoid; mso-yfti-lastrow: yes”>
<TD style=”BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 495pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt” vAlign=top width=660 colSpan=2>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center” align=center><B style=”mso-bidi-font-weight: normal”><SPAN lang=EN-US style=”FONT-SIZE: 12pt”>Page bottom</SPAN></B></P></TD></TR></TBODY></TABLE></DIV>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
<P class=MsoNormal style=”MARGIN: 0cm 0cm 0pt”><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
</textarea>
<input type=”button” onclick=’ViewCode()’ value=”看代码”/>
</BODY>
</HTML>

 

2004年06月25日

一定要看到最后,太经典了!!!

   有些国家的名字如此浪漫

   h.o.l.l.a.n.d 荷兰
   hope our love lasts and never dies. 希望我们的爱永恒不变

   i.t.a.l.y. 意大利
   i trust and love you. 我相信你和爱你

   l.i.b.y.a. 利比亚
   love is beautiful; you also. 爱是美丽的 你也是

   f.r.a.n.c.e. 法兰西
   friendships remain and never can end. 友谊永固

   c.h.i.n.a. 中国
   come here. i need affection. 来这 我需要爱

   b.u.r.m.a. 缅甸
   between us, remember me always. 我们之间 常常记得我

   n.e.p.a.l. 尼泊尔
   never ever part as lovers. 像情人一样 永不分开

   i.n.d.i.a. 印度
   i nearly died in adoration. 我差点在狂爱中死去

   k.e.n.y.a 肯雅
   keep everything nice, yet arousing. 全部东西保养好来 保持趣味

   c.a.n.a.d.a. 加拿大
   cute and naughty action that developed into attraction 可爱和顽皮的动作建造成吸引力

   k.o.r.e.a. 南韩
   keep optimistic regardless of every adversity. 虽然事与愿违保持乐观

   e.g.y.p.t. 埃及
   everything’s great, you pretty thing!! 十全十美,你这漂亮的东西

   m.a.n.i.l.a. 马尼拉
   may all nights inspire love always. 漫漫长夜时时刻刻感到爱

   p.e.r.u. 秘鲁
   phorget (forget) everyone… remember us. 忘记全部人 记得我们

   t.h.a.i.l.a.n.d. 泰国
   totally happy. always in love and never dull. 完全快乐 时时刻刻蜜运中不会无聊

   j.a.p.a.n. 日本
   just a pig, a nut. 只是个猪和白痴

2004年06月23日

if (!IsPostBack)
   {

    string strConnection = null;
    string strSQL = null;
    strConnection = “Provider=Microsoft.Jet.OleDb.4.0;Data Source=”+Server.MapPath(“../database/database.mdb”);
    strSQL = “select ClassID,ClassName from [system_NewsClass] where ParentClassID=0″;

    OleDbConnection myOleDbConnection = new OleDbConnection(strConnection);
    OleDbDataAdapter myOleDbDataAdapter = new OleDbDataAdapter(strSQL,myOleDbConnection);
    DataSet myDataSet = new DataSet();
    myOleDbDataAdapter.Fill(myDataSet,”system_NewsClass”);
    ddlParentClassID.DataSource = myDataSet.Tables["system_NewsClass"];
    ddlParentClassID.DataValueField = myDataSet.Tables["system_NewsClass"].Columns["ClassID"].Caption;
    ddlParentClassID.DataTextField =  myDataSet.Tables["system_NewsClass"].Columns["ClassName"].Caption;
    ddlParentClassID.DataBind();
    ddlParentClassID.Items.Insert(0,new ListItem(“一级类别”,”0″));
    myOleDbConnection.Close();
   }

2004年06月22日

  <SCRIPT language=Javascript><!– // load htmlarea
_editor_url = “”;                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split(“MSIE”)[1]);
if (navigator.userAgent.indexOf(‘Mac’)        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf(‘Windows CE’) >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf(‘Opera’)      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write(‘<scr’ + ‘ipt src=”‘ +_editor_url+ ‘editor.js”‘);
  document.write(‘ language=”Javascript”></scr’ + ‘ipt>’); 
} else { document.write(‘<scr’+'ipt>function editor_generate() { return false; }</scr’+'ipt>’); }
// –></SCRIPT>
<TEXTAREA id=mytextarea style=”WIDTH: 800px; HEIGHT: 400px” runat=”server”>         </TEXTAREA>
<SCRIPT language=javascript>
editor_generate(‘<% Response.Write(mytextarea.ClientID); %>’); ;
</SCRIPT>

轻松将html转化为.net了

看来我要学学基础了!
 

这里是网址http://www.interactivetools.com/products/htmlarea/

又到了端午节!大家怀念一下屈原吧!

2004年06月17日

恭喜你呀!你老婆刚刚在医院为你生了个大胖小子,你出去都两年多了,也不回家看看。 
   
  有一天,我和你去探险,遇到了一个食人妖,它先用鼻子闻了闻你,再用鼻子闻闻我,然后选择吃我,我觉得不公平,就问它为什么,它说它是回族的! 
   
  一人喝得烂醉坐车回家,司机是位女士,这人上了车就脱衣服,女司机质问他的行为,他却大惊道:“你在我家里干什么,我可是有老婆的!” 
   
  一位男子悲伤的对酒友说:“没想到我太太对我不忠,她告诉我昨晚她和她的妹妹在一起,可实际上,昨天晚上我是和她妹妹在一起的!” 
   
  女儿:“有人给我介绍一对象,他爸爸是局长,叔叔在外贸部工作,舅舅在香港当经理!”母亲:“条件真不错啊,那你打算跟哪个结婚呢?” 
   
  一架飞机飞过一个精神病院。突然,驾驶员哈哈大笑起来,空中小姐好奇地问“你为什么笑得那么开心呀?”驾驶员:“要是他们知道我逃出来的话,一定会被气疯的!” 
   
  老板:「今天你为什麽迟到?」职员:「因为你昨天宣布只许在家里看报。」 
   
  母女二人参观女儿男朋友的画展。母亲发现其中一幅裸体人像酷似自己的女儿,便问道:“你没有光着身子给他画吧?”“啊,没有,”女儿答道,“他是凭记忆画的。” 
   
   
  某县一农民,天天喂猪吃泔水,结果被“动物保护协会”罚了一万元—因为孽待动物。后来,农夫改喂猪吃天山雪莲,结果又被“动物保护协会”罚了一万元—因为浪费食物。有一天,领导又来视察,问农民喂什么给猪吃。农民说:“我也不知道该喂什么才好了,现在我每天给它一百块钱,让它自己出去吃。” 
   
  鲨鱼看着一个滑浪风帆运动员说:「招待真周到。既有早餐,又有盘子和餐巾。」 
   
  非洲原始森林里,探险家跟当地的导游同行。旅行家:“这儿安全吗,会不会有食人族?”导游:“绝对不可能有!因为在上周最后一个食人族已经被我们吃掉了!” 
   
   “汤姆,你挖坑做什么?”“我家的金鱼死了,我给它做个坟墓。”“这个坑是不是太大啦?”“没办法,金鱼在你家猫的肚子里。” 
   
  小蛤蟆看见了青蛙,便问妈妈:“那叔叔长得和咱们一样,可为啥是绿皮肤呀?”蛤蟆妈妈:“嘘!小声点,那是因为他老婆和别人过情人节去了。” 
   
  公园的椅子上坐着一位老妇人,一个小孩子走过来:“婆婆,您的牙还行吗?”“已经不行了,都掉了。”于是小孩子拿出一包胡桃说:“请您替我拿一下,我过去玩一会球……” 
   
  老师:“如何分辨章鱼的手和脚?”学生:“放个屁给它闻,会捂住鼻子的就是手,其他的就是脚。 
   
  一个男孩写信给他的女朋友:亲爱的,为了你,我会奋不顾身横渡大洋,毫不犹豫跳进万丈深渊,我会克服任何困难!星期天我准时找你,如果天不下雨的话! 
   
  三个犯人坐在一个斜眼的法官面前。法官威严地问道:“你叫什么名字?!”“比尔”,第二个犯人老老实实地答道。“我没有问你!”法官咆哮着,“可是我什么也没说呀”,第三个犯人委屈地答道。 
   
  神甫:我的孩子,为你深重的罪行忏悔吧。否则,天堂的大门对你将是关闭的。惯偷:别担心,天底下还没有我打不开的门。 
   
  一辆耀武扬威的大卡车上背着一块大木牌,上书:“本车与他车相撞17次,其中15次大胜,1次平局,只有1次失利。故诸君在撞我之前要三思而后行!”

LP今天很困,在我的办公室里就睡着了,昨天晚上学习学得太晚了

Page_Load中添加

btnAdd.Attributes.Add(“OnMouseOver”,”this.className=’coolButtonUp’”);
btnAdd.Attributes.Add(“OnMouseOut”,”this.className=’coolButton’”);
btnAdd.Attributes.Add(“OnMouseDown”,”this.className=’coolButtonDown’”);
btnAdd.Attributes.Add(“OnMouseUp”,”this.className=’coolButtonUp’”);