摘要: 1 document.onmouseover=showmune; 2 var sPop = null; 3 document.write('<style type=text/css>'); 4 document.write(''); 5 document.write('.PopText { font-family: Tahoma, 宋体; color: #000000; background-color: #66FF33; border: 1px #000000 dashed; font-size: 12px; line-height: 14 阅读全文
posted @ 2012-01-17 16:23 祥辉 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1 //左右不断循环滚动 2 var splep=30; 3 demo2.innerHTML=demo1.innerHTML; 4 var _left = demo1.offsetWidth; 5 var mymarq=setInterval(marquee,splep); 6 demo.onmouseover=function(){ clearInterval(mymarq);} 7 demo.onmouseout=function(){ mymarq=setInterval(marquee,splep);} 8 function marquee(){ 9 if((_left - ... 阅读全文
posted @ 2012-01-17 16:22 祥辉 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 1 var PImgPlayer = { 2 _timer : null, 3 _items : [], 4 _container : null, 5 _index : 0, 6 _imgs : [], 7 intervalTime : 5000, //轮播间隔时间 8 init : function( objID, w, h, time ){ 9 this.intervalTime = time || this.intervalTime; 10 this._container =... 阅读全文
posted @ 2012-01-17 16:21 祥辉 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 //=================处理键盘值===================== 2 function get_char(){ 3 if(event.shiftKey){ 4 switch(event.keyCode.toString()){ 5 case "96":return("0"); 6 case "97":return("1"); 7 case "98":return("2"); 8 case "99":return("3 阅读全文
posted @ 2012-01-17 16:20 祥辉 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 1 //打字效果 2 /* 3 * <a id="wtid">网站公告:本网站开始于2008-11-18</a> 4 ******* huang_xiang ********* 5 * H_write.wobj = document.getElementById("wtid"); 6 * H_write.s = new Array( 7 * new Array("网站公告:叶绿辉香叶绿辉香叶绿辉香叶绿辉香叶绿辉香叶绿辉香叶绿辉香!","green","http://www.91yl 阅读全文
posted @ 2012-01-17 16:19 祥辉 阅读(243) 评论(0) 推荐(0) 编辑
摘要: var H_11 = new Array();H_11[0] = Array();H_11[1] = Array("东城区|110101","西城区|110102","崇文区|110103","宣武区|110104","朝阳区|110105","丰台区|110106","石景山区|110107","海淀区|110108","门头沟区|110109","燕山区|110110","房山区|1 阅读全文
posted @ 2012-01-17 16:19 祥辉 阅读(7459) 评论(0) 推荐(0) 编辑
摘要: //全选function selectall(_obj,_obj1,_objv,_objv1){ var fg = _obj1.value == _objv?true:false; _obj1.checked=fg; _obj1.value=fg?_objv1:_objv; if(_obj.length != undefined){ for(var i=0;i<_obj.length;i++) _obj[i].checked = fg; }else{ _obj.checked=fg; } }//反选function switchall(_obj,_obj1){ _obj1.checked 阅读全文
posted @ 2012-01-17 16:14 祥辉 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1 function get_browser(){ 2 //判断浏览器类型和版本 3 var Sys = {}; 4 var ua = navigator.userAgent.toLowerCase(); 5 var s; 6 (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : 7 (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : 8 (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chr... 阅读全文
posted @ 2012-01-17 16:14 祥辉 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 tPopWait=50; 2 tPopShow=2000; //提示层的渐渐消失时间 3 showPopStep=90; 4 popOpacity=90;//提示层的透明度 5 6 sPop=null; 7 curShow=null; 8 tFadeOut=null; 9 tFadeIn=null;10 tFadeWaiting=null;11 12 document.write("<style type='text/css'id='defaultPopStyle'> .cPopText { background-color: #FFF 阅读全文
posted @ 2012-01-17 16:13 祥辉 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 函数 F_iconv 3 * 4 * 转换字符串编码 5 * 6 * @param string 原字符串 7 * @param string 转换编码类型[gb2312-utf8|gb2312-utf8-I|gb2312-utf8-T|utf8-gb2312|utf8-gb2312-I|utf8-gb2312-T] 8 * @return string 9 **/10 function F_iconv($P_strig,$P_types='gb2312-utf8-i'){11 switch(strtolower($P_types)){12 ... 阅读全文
posted @ 2012-01-17 16:06 祥辉 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: 1 !defined('QY_JK_API_ROOT') && die('VOID'); 2 3 declare(ticks=1); 4 class thread{ 5 public $MaxTask = 5; //最大任务包数 6 public $TaskPackag = array(); //任务包列表 7 public $CurrentPackId = 0; //当前任务包Id 8 public $MaxProcesses = 25; //最大线程数 9 public $... 阅读全文
posted @ 2012-01-17 16:04 祥辉 阅读(338) 评论(0) 推荐(0) 编辑
摘要: <?php/** * @copyright 2011 * @description: 全局函数文件 * @file: global.function.php * @author: Huang Xiang * @charset: UTF-8 * @time: 2011-09-19 14:41:53 * @version 1.0**//** * @name: is_empty * @description: 检测变量是否为空 * @param: mixed 需要判断变量 * @return: boolean * @author: Huang Xiang * @create: 2011-09- 阅读全文
posted @ 2012-01-17 16:00 祥辉 阅读(229) 评论(0) 推荐(0) 编辑
摘要: <?phpclass C_Imap{ public $Fosck = null; public $Server = ''; public $Port = 143; public $Errno = null; public $Erron = null; public $TimeOut = 30; public $NextNum = 1; //执行编号 public $NumAnex = null; //执行编号前缀 public $ThisNum = null; //当前的编号 public $IsDeBug = 2; //debug等级 public $ThisMailB 阅读全文
posted @ 2012-01-17 15:58 祥辉 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 error_reporting(E_all && ~E_notice); 4 5 class LDAP{ 6 public $Server = '192.168.1.87'; 7 public $Port = '389'; 8 public $UserName = 'huangxiang@adtest.qy'; 9 public $PassWord = 'ABC123abc'; 10 public $LdapConn = null; 11 12 //打开连接 13 public f.. 阅读全文
posted @ 2012-01-17 15:55 祥辉 阅读(304) 评论(0) 推荐(0) 编辑
摘要: CentOS 5.6 系统配置CentOS 5.6 系统配置======================================================================--Mysql5.5以后是通过Cmake来编译======================================================================安装Cmake下载:www.cmake.org (下载源码 cmake-2.8.4.tar.gz)解压: #tar zxf cmake-2.8.4.tar.gz#cd cmake-2.8.4#./configure 阅读全文
posted @ 2012-01-17 15:47 祥辉 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 /************************************* 3 * ZIP处理---H_zip.php 4 * 创建人: huang_xiang 5 * 创建时间:2008-12-25 9:29 6 * 更新时间:2009-2-18 13:37 7 * Email:yin273642232@163.com QQ:273642232 8 *************************************/ 9 /************************************* 10 实例代码... 阅读全文
posted @ 2012-01-17 15:39 祥辉 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 /************************************* 3 * XML处理---H_xml.php 4 * 创建人: huang_xiang 5 * 创建时间:2009-6-29 9:40 6 * 更新时间:2009-6-29 9:41 7 * Email:yin273642232@163.com QQ:273642232 8 *************************************/ 9 /************************************* 10 实例代码 1... 阅读全文
posted @ 2012-01-17 15:38 祥辉 阅读(279) 评论(0) 推荐(0) 编辑
摘要: <?php/************************************** WML处理---H_wml.php* 创建人: huang_xiang* 创建时间:2008-12-25 9:29* 更新时间:2009-2-18 13:38* Email:yin273642232@163.com QQ:273642232*************************************//*************************************实例代码 include_once("H_wml.php"); //引入文件 $H_wml 阅读全文
posted @ 2012-01-17 15:36 祥辉 阅读(244) 评论(0) 推荐(0) 编辑
摘要: <?php/************************************** SMTP邮件处理---H_smtp.php* 创建人: huang_xiang* 创建时间:2009-2-18 13:27* 更新时间:2009-2-18 13:36* Email:yin273642232@163.com QQ:273642232*************************************//*************************************实例代码 include_once("H_smtp.php"); //引入文件 $s 阅读全文
posted @ 2012-01-17 15:35 祥辉 阅读(308) 评论(0) 推荐(0) 编辑
摘要: <?php/************************************** 输出word EXCEL xml html处理---H_print.php* 创建人: huang_xiang* 创建时间:2008-12-25 9:29* 更新时间:2009-2-18 13:38* Email:yin273642232@163.com QQ:273642232*************************************//*************************************实例代码 include_once("H_print.php& 阅读全文
posted @ 2012-01-17 15:33 祥辉 阅读(278) 评论(0) 推荐(0) 编辑