网站开发与移动开发

博客园 首页 新随笔 管理

09 2008 档案

摘要:<!--start------------------------------------------------------------> 相对定位版不间断滚动:<br><br> <divstyle="width:200px;height:150px;overflow:hidden"> <tablecellspacing=0cellpadding=5bgcolor=#F8F8F8style="position:relative;top:0px;width:200px;table-layout:fixed&qu 阅读全文
posted @ 2008-09-26 15:53 txf2004 阅读(227) 评论(0) 推荐(0)

摘要:在文本框的keypress事件调用下面函数。 如<inputdisabled="disabled"type="text"id='userNameToEdit'onkeypress="TextValidate()"/> 如果在文本框中按下特殊字符键,则显示警告信息,并且屏蔽输入。 functionTextValidate() { varcode; varcharacter; varerr_msg="TextcannotcontainSPACESoranyofthesespecialcharacter 阅读全文
posted @ 2008-09-26 15:52 txf2004 阅读(334) 评论(0) 推荐(0)

摘要:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <title>runcode</title> <metahttp-equiv="Content-Type"content="text/h 阅读全文
posted @ 2008-09-25 19:46 txf2004 阅读(140) 评论(0) 推荐(0)

摘要:<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <metahttp-equiv="Content-Type"content="text/html;charset=gb2312"> <title>我的导航菜单</title> <style> body{ font- 阅读全文
posted @ 2008-09-25 19:44 txf2004 阅读(229) 评论(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=gb2312" 阅读全文
posted @ 2008-09-25 19:41 txf2004 阅读(206) 评论(0) 推荐(0)

摘要:<scriptlanguage="JavaScript"> varnum=1; functionshow(obj){ if(obj.checked){ document.all.photoyn.style.display=""; document.all.photoyn.innerHTML="<inputtype=/"file/"size=/"25/"name=/"photopath/"class=/"upfile/"><fontcol 阅读全文
posted @ 2008-09-25 13:30 txf2004 阅读(139) 评论(0) 推荐(0)

摘要:<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <metahttp-equiv="Content-Type"content="text/html;charset=gb2312"> <title>无标题文档</title> <styletype="text/c 阅读全文
posted @ 2008-09-24 13:39 txf2004 阅读(159) 评论(0) 推荐(0)

摘要:每次都有不同的名言出来。 实现方法: 1.上传title.js到网站目录 2.在页面相应位置添加以下代码: <scripttype="text/javascript"src="file/title.js"charset="UTF-8"></script> 3.title.js代码如下: _VC_DocumentTitles=newArray('世间的活动,缺点虽多,但仍是美好的','真正没有资格谈明天的人,是那个不懂得珍惜今天的人','修行就是修正自己错误的观念' 阅读全文
posted @ 2008-09-24 13:37 txf2004 阅读(130) 评论(0) 推荐(0)

摘要:<html> <head> <styletype="text/css"> .big { position:relative;width:300px;height:300px;background:#ffff00; } .small { position:absolute;top:50%;left:50%;background:#ff6600; } </style> </head> <body> <divclass="big"><divclass="smal 阅读全文
posted @ 2008-09-24 13:36 txf2004 阅读(155) 评论(0) 推荐(0)

摘要:解决的办法是给FLASH设置透明<paramname="wmode"value="transparent"/>或者<paramname="wmode"value="opaque"/>. <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <htmlxmlns="http:/ 阅读全文
posted @ 2008-09-23 21:29 txf2004 阅读(167) 评论(0) 推荐(0)

摘要:用CSS实现文字垂直居中的代码 <styletype="text/css"> <!-- .con_div{ width:400px; height:300px; border:1pxsolid#777; text-align:center; display:table-cell; vertical-align:middle; background:red; color:#fff } /*FORIE*/ .webjx{ width:0; height:100%; display:inline-block; vertical-align:middle; } - 阅读全文
posted @ 2008-09-23 21:28 txf2004 阅读(209) 评论(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=gb2312" 阅读全文
posted @ 2008-09-23 21:26 txf2004 阅读(127) 评论(0) 推荐(0)

摘要:<HTML> <bodyleftmargin="0"topmargin="0"marginwidth="0"marginheight="0"onbeforeunload="popwin('http://www.alixixi.com/firefox/','_blank');"> <scriptlanguage="javascript"> varaw=screen.availWidth; varah=scree 阅读全文
posted @ 2008-09-23 07:47 txf2004 阅读(453) 评论(0) 推荐(0)

摘要:变量$file_name可以来自上传域或者指定为其他 <?//方法一: functionextend($file_name) { $retval=""; $pt=strrpos($file_name,"."); if($pt)$retval=substr($file_name,$pt+1,strlen($file_name)-$pt); return($retval); } //方法二(PHP4.03及更高版本) $extend=pathinfo($file_name); $extend=strtolower($extend["exten 阅读全文
posted @ 2008-09-23 07:40 txf2004 阅读(168) 评论(0) 推荐(0)

摘要:PHP页面中如果不希望出现以下情况: 单引号被转义为/' 双引号被转义为/" 那么可以进行如下设置以防止: 方法一:在PHP.ini中设置:magic_quotes_gpc=Off 方法二:$str=stripcslashes($str) 阅读全文
posted @ 2008-09-23 07:38 txf2004 阅读(172) 评论(0) 推荐(0)