博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年2月28日

摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>图片提示效果</title><script type="text/javascr 阅读全文

posted @ 2013-02-28 17:32 人生梦想起飞 阅读(328) 评论(0) 推荐(0) 编辑

摘要: <style>#demo img{border:none;width:100px;height:100px; margin-right:20px;}#enlarge_images{position:absolute;display:none;z-index:2;border:5px solid #f4f4f4}</style><div id="demo" style="overflow:hidden;height:100px; width:1000px;"><img src="content/image 阅读全文

posted @ 2013-02-28 17:12 人生梦想起飞 阅读(1149) 评论(0) 推荐(0) 编辑

2013年2月25日

摘要: <HTML> <HEAD> <TITLE>JS+CSS制作的DIV层最小化和随意拖拽排序功能丨芯晴网页特效丨CsrCode.CN</TITLE> <style type="text/css"> body { margin:10px; } #dragHelper { position:absolute;/*重要*/ border:2px dashed #000000; background-color:#FFFFFF; filter: alpha(opacity=30); } .normal { position:a 阅读全文

posted @ 2013-02-25 12:35 人生梦想起飞 阅读(1108) 评论(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"><head><title>JS+CSS实现几个DIV层上下移动交换位置的效果丨芯晴网页特效丨CsrCode.Cn</title><style ty 阅读全文

posted @ 2013-02-25 12:31 人生梦想起飞 阅读(458) 评论(0) 推荐(0) 编辑

2013年2月22日

摘要: <script type="text/javascript"> window.onload = function(){function getByteLen(val) { var len = 0; for (var i = 0; i < val.length; i++) { var a = val.charAt(i); if (a.match(/[^\x00-\xff]/ig) != null){ len += 2; }else{ len += 1; } } return len; } alert(getByteLen('妈2ds')); 阅读全文

posted @ 2013-02-22 18:07 人生梦想起飞 阅读(2955) 评论(0) 推荐(0) 编辑

2013年2月6日

摘要: <!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><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文

posted @ 2013-02-06 12:37 人生梦想起飞 阅读(1822) 评论(0) 推荐(0) 编辑

2013年1月31日

摘要: var a=[1,2,3,5];alert(Math.max.apply(null, a));//最大值alert(Math.min.apply(null, a));//最小值多维数组可以这么修改:var a=[1,2,3,[5,6],[1,4,8]];var ta=a.join(",").split(",");//转化为一维数组alert(Math.max.apply(null,ta));//最大值alert(Math.min.apply(null,ta));//最小值 阅读全文

posted @ 2013-01-31 16:34 人生梦想起飞 阅读(224) 评论(0) 推荐(0) 编辑

摘要: <!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <style> .point { position:absolute; width:1px; height:1px; overflow:hidden; background:red; } .col { position:absolute; left:300px; top:100px; font-size:20px; font-weight:bold; 阅读全文

posted @ 2013-01-31 14:53 人生梦想起飞 阅读(2983) 评论(1) 推荐(0) 编辑

2013年1月17日

摘要: 方法一: 第一条 第二条 第三条 第四条 第五条 第六条 第七条 第八条 方法二: Js实现无刷新添加新层,拖动DIV层可互换位置丨芯晴网页特效丨CsrCode.Cn dom0 dom1 dom2 do... 阅读全文

posted @ 2013-01-17 12:30 人生梦想起飞 阅读(9503) 评论(2) 推荐(0) 编辑

2013年1月10日

摘要: <!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><meta http-equiv="Content-Type" content="text/html; charset=utf 阅读全文

posted @ 2013-01-10 18:21 人生梦想起飞 阅读(466) 评论(0) 推荐(0) 编辑