网站开发与移动开发

博客园 首页 新随笔 管理

2008年8月23日 #

摘要: <!doctypehtmlpublic"-//w3c//dtdhtml4.01//en""http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <metahttp-equiv=content-typecontent="text/html;charset=utf-8"> <title>onunderflow</title> <scriptlanguage="JavaScript"> 阅读全文
posted @ 2008-08-23 15:06 txf2004 阅读(150) 评论(0) 推荐(0) 编辑

2008年8月22日 #

摘要: <scripttype="text/javascript"> /* FormfieldLimiterscript-ByDynamicDrive ForfullsourcecodeandmoreDHTMLscripts,visithttp://www.dynamicdrive.com ThiscreditMUSTstayintactforuse */ varns6=document.getElementById&&!document.all functionrestrictinput(maxlength,e,placeholder){ if(win 阅读全文
posted @ 2008-08-22 08:15 txf2004 阅读(157) 评论(0) 推荐(0) 编辑

摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/ 阅读全文
posted @ 2008-08-22 08:11 txf2004 阅读(169) 评论(0) 推荐(0) 编辑

2008年8月21日 #

摘要: <scripttype="text/javascript"> window.onload=function(){ vara=document.getElementById("loading"); a.parentNode.removeChild(a); } document.write('<divid="loading"style="background:#CC4444;color:#FFF;width:75px;line-height:20px;position:absolute;padding: 阅读全文
posted @ 2008-08-21 09:23 txf2004 阅读(145) 评论(0) 推荐(0) 编辑

2008年7月23日 #

摘要: <?php $showtime2=strtotime($myrow["updatetime"]);echo date("D d,M Y",$showtime2);?>其中updatetime,形如2008-06-20 01:16:20格式化后,形如 形如(Wed 30,Jul 2008) 阅读全文
posted @ 2008-07-23 21:51 txf2004 阅读(158) 评论(0) 推荐(0) 编辑

2008年7月22日 #

摘要: 背景图只显示一次,不循环 这个用一个CSS就搞定.{background-repeat:no-repeat;}PHP后台就是一个表单域textarea,输入时候要回车时候就回车前台<?php $text = $res_now[&apos;oem_no&apos;]; $text = str_replace("&","&amp;",$text); $text = str_replace(" <","&lt;",$text); $text = str_replace( 阅读全文
posted @ 2008-07-22 08:37 txf2004 阅读(185) 评论(0) 推荐(0) 编辑

2008年6月26日 #

摘要: <!--textarea自适应高度--> <h3>textarea自适应高度</h3> <textareastyle='border:1pxsolid#94BBE2;width:100%;'rows=15onpropertychange='this.style.posHeight=this.scrollHeight'id=textareaonfocus='textarea.style.posHeight=this.scrollHeight'> <br> <Br> </t 阅读全文
posted @ 2008-06-26 21:31 txf2004 阅读(178) 评论(0) 推荐(0) 编辑

2008年6月25日 #

摘要: 一段很简单的代码,刚刚写的时候有用,平时是用来替换空格为-的<?PHP$rep_product_id=$myrow["product_id"];if(substr_count($rep_product_id,"$keywords")>0){$rep_product_id=str_replace("$keywords","<fontcolor=red>".$keywords."</font>",$rep_product_id);}echo$rep_product 阅读全文
posted @ 2008-06-25 17:59 txf2004 阅读(674) 评论(0) 推荐(0) 编辑

摘要: <!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"><HTML><HEAD><TITLE>搜索条</TITLE><META NAME="Generator" CONT 阅读全文
posted @ 2008-06-25 17:56 txf2004 阅读(107) 评论(0) 推荐(0) 编辑

2008年6月10日 #

摘要: 经历了前段时间电信重组之后,电信行业的发展总算是明朗了,三张3G牌照今天看到腾讯招人的信息,似乎有几百个职位,这样看来至少也有近千人的人事需求,分别在北京和深圳工作,呵呵。腾讯是否开始扩张了呢?在3G和WINMAX等等。以上纯属没事瞎写的。 阅读全文
posted @ 2008-06-10 16:38 txf2004 阅读(156) 评论(0) 推荐(0) 编辑

2008年6月8日 #

摘要: 次意外停电后,无法运行IIS,刚开始就想之前一样,在安全模式下删除一些文件后重新装IIS,但是仍然是老样子,没办法,百度,Google无法找到解决方法。 准备重装时候做最后一次尝试,google搜索看到一篇是说日志文件引起的,特记录下来 突然的断电或者重启,造成IIS的LOG错误。解决的方法: 找到IIS日志文件的位置,一般在%WinDir%/System32/LogFiles,我的在C:/WINNT/System32/LogFiles中,一般W3SVC1目录是“默认WEB站点”使用的日志文件目录,在里面找到当天的日志文件,删除后重新启动电脑,正常。 http://www.corange.cn 阅读全文
posted @ 2008-06-08 21:14 txf2004 阅读(107) 评论(0) 推荐(0) 编辑

摘要: 刚刚调试一个俄语的数据库,数据库采用的编码是UTF-8的编码,网页一直无法显示正常,中文也不行,后来搜索了一下,发现一个解决方法,记录下来 网页编码用DW改为UTF-8,数据库连接的地方加一个mysql_query("SETNAMESutf8");在最后一行。 当然也可以同时将网页的部分改为GB2312,都能正常显示,但是可能传到国外空间乱码了,所以还是用UTF8的好。http://www.corange.cn/archives/2008/03/467.html 阅读全文
posted @ 2008-06-08 21:14 txf2004 阅读(106) 评论(0) 推荐(0) 编辑

摘要: http://www.corange.cn/archives/2008/06/1242.html 这个是我在使用的例子,当然也许有一些不足,这里写出来给大家参考下 当然在ASP中也是可以用的 我的这个例子是动态改变背景色,因为前台是生成静态页的,才考虑到用这个方法 先将CSS文件命名为php文件 <linkhref="../css/corange.css.php"rel="stylesheet"type="text/css"> _fcksavedurl=""../css/corange.css.php& 阅读全文
posted @ 2008-06-08 21:13 txf2004 阅读(172) 评论(0) 推荐(0) 编辑

2008年5月19日 #

摘要: 沉痛哀悼,网页变黑白网页变黑白,绝对可用加了代码网页变黑白没效果的进这里有所有的代码教程 html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);} 使用方法:这段代码可以变网页为黑白,将代码加到CSS最顶端就可以实现素装。 有一些站长的网站可能使用这个css不能生效,是因为网站没有使用最新的网页标准协议 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/D 阅读全文
posted @ 2008-05-19 16:42 txf2004 阅读(262) 评论(0) 推荐(0) 编辑

2008年4月26日 #

摘要: <head> <metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/> <title>提示信息框</title> <styletype="text/css"> a{color:#000;font-size:12px;text-decoration:none} a:hover{color:#900;text-decoration:underline} body{background:;filter:pr 阅读全文
posted @ 2008-04-26 13:44 txf2004 阅读(184) 评论(0) 推荐(0) 编辑

2008年4月17日 #

摘要: 以展开刷新不改变的二级树形菜单,大类点击不展开小类,小类有旁边的图标展开。 <!--#includefile="conn.asp"--> <SCRIPTlanguage=JavaScript> var__cc_uid="shenglu"; </SCRIPT> <SCRIPTtype=text/javascript> varpersistmenu="yes"//"yes"or"no".MakesureeachSPANcontentcontainsan 阅读全文
posted @ 2008-04-17 12:55 txf2004 阅读(127) 评论(0) 推荐(0) 编辑

2008年4月12日 #

摘要: <?php/**文件操作类,createbylinyupark,*/classFile{protected$path;//根目录例如./uploadfunction__construct($path){if(!is_dir($path))mkdir($path,0777);$this->path=$path;}/**#文件上传函数*@input_name为表单中type为file的name值*@ext_arr为允许使用的扩展名数组,请用小写,例array('jpg','gif')*@max_size文件大小,单位b,上限请修改php.ini中的pos 阅读全文
posted @ 2008-04-12 08:58 txf2004 阅读(203) 评论(0) 推荐(0) 编辑

2008年3月29日 #

摘要: <html> <head> <metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/> <title>模仿某招聘网站的Js搜索菜单</title> </head> <scriptlanguage="JavaScript"type="text/javascript"> //---------------------------- //省 varData_Area 阅读全文
posted @ 2008-03-29 11:50 txf2004 阅读(260) 评论(0) 推荐(0) 编辑

2008年3月28日 #

摘要: 网上看到的一个代码改的,之前不能删除,现在改了一下就可以删除了。 <% setfso=CreateObject("Scripting.FileSystemObject") ifrequest("Action")="Del"then whichfile=server.mappath(Request("FileName")) Setthisfile=fso.GetFile(whichfile) thisfile.DeleteTrue endif %> <% Response.Write"&l 阅读全文
posted @ 2008-03-28 10:33 txf2004 阅读(549) 评论(0) 推荐(0) 编辑

摘要: 网上很多登录程序都很复杂,看不明白,这个应该比较好懂了。login.php <FORMACTION="checklogin.php"METHOD="POST"> <TABLEheight=159cellSpacing=0cellPadding=0width=268align=center bgColor=#ffff99border=0> <TBODY> <TR> <TDalign=middlewidth=234height=43><IMGheight=113 src="image 阅读全文
posted @ 2008-03-28 07:04 txf2004 阅读(169) 评论(0) 推荐(0) 编辑