02 2011 档案
摘要://DynamicLoad File(css,js) //Edit By dj_Yang function DynamicLoad() { var Self = this; this.Load = function(type, src) { var objDynamic; if (type == "js" || type == "vbs") { objDynamic = document.createElement("script"); objDynamic.src = src; if (type == "js")
阅读全文
摘要:String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, "");}String.prototype.LTrim = function() { return this.replace(/(^\s*)/g, "");}String.prototype.RTrim = function() { return this.replace(/(\s*$)/g, "");}
阅读全文
摘要://AJAX request for the city datafunction ajaxforget(cn) { var xmlhttp_request = ""; try { if (window.ActiveXObject) { for (var i = 5; i; i--) { try { if (i == 2) { xmlhttp_request = new ActiveXObject("Microsoft.XMLHTTP"); } else { xmlhttp_request = new ActiveXObject("Msxml2.
阅读全文
摘要:<?php header("content-Type: text/html; charset=gb2312"); include_once("DBHelper.php"); include_once("test_array.php");?> <!--==========业务逻辑==========--><?php$conn = new ADOConnection;$conn -> PConnect("localhost","root","weoffi
阅读全文
摘要:<?php header("content-Type: text/html; charset=gb2312"); include_once("DBHelper.php");?> <!--==========业务逻辑==========--><?php$conn = new ADOConnection;$conn -> PConnect("localhost","root","weoffice","eoffice");//数据库连接$conn
阅读全文
摘要://DBHelper.php<?phpclass ADOConnection{//打开数据库的连接function PConnect($ip,$user,$pwd,$database){$db = mysql_connect($ip,$user,$pwd);if(!$db) {print "在连接到数据库服务器时,产生错误".mysql_error();exit;}$link = mysql_select_db($database,$db);if(!$link) {print "在连接上服务器,选择数据库时出现错误".mysql_error();e
阅读全文
摘要:DynamicLoad.js文件代码如下:function DynamicLoad(){//属性var Self=this; //对象自身//功能:加载指定的文件//参数:src——需要被加载的文件//返回:(无)this.Load=function(src){if(Self.IsLoaded(src)) //判断该文件是否已经加载了{ Self.OnLoaded(src); return;}else //如果没有加载,动态创建{ var objDynamic; //动态创建的对象 var type=Self.GetSrcType(src); //文件类型 if(type=="js&
阅读全文
摘要:<!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> <title></title></head><body> <input type="text&q
阅读全文
摘要:<!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> <title></title></head><body><table width=100% cellpad
阅读全文
摘要:摘自--我佛山人<title>表单验证类 Validator v1.01</title><style>body,td{font:normal 12px Verdana;color:#333333}input,textarea,select,td{font:normal 12px Verdana;color:#333333;border:1px solid #999999;background:#ffffff}table{border-collapse:collapse;}td{padding:3px}input{height:20;}textarea{wid
阅读全文
摘要:1.avi格式 以下内容为程序代码: <object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> <param name="ShowDisplay" value="0"> <param name="ShowControls" value="1
阅读全文
摘要:www.web-tag.net(取自)/* function:check is null?args:str(str)return: true(null) false(not null)*/function isNull(str) { if (str == "") return true; var regu = "^[ ]+$"; var re = new RegExp(regu); return re.test(str);}/* function:check the date(s) is less than or equl to endtime(e)ar
阅读全文
摘要:目的:自由控制文本框不能被客户改变(只能通过脚本来改变值),或者可以被客户自由改变。<!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> <title></title> <script
阅读全文
摘要:try{ if( window.ActiveXObject ){ for( var i = 5; i; i-- ){ try{ if( i == 2 ){xmlhttp_request = new ActiveXObject( "Microsoft.XMLHTTP" ); }else{xmlhttp_request = new ActiveXObject( "Msxml2.XMLHTTP." + i + ".0" ); }//xmlhttp_request.setRequestHeader方法必须在open方法之后被调用!!//xml
阅读全文