上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 鼠标手势:Smooth Gestures中文论坛:http://www.chromechina.com/CSDN:http://blog.csdn.net/chromeblog让Google 打个滚:搜索“Do a barrel roll”或“Z or R twice” 阅读全文
posted @ 2011-11-20 18:00 wkylin 阅读(143) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>css order</title> <link rel="stylesheet" type="text/css" href="../style/base.css" media="all"> <link rel="stylesheet" type="text/cs 阅读全文
posted @ 2011-11-14 18:03 wkylin 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 如些引入,样式并没有起到作用。<link href="style/html5reset-1.6.1.css" media="all"/>需要加入:rel="stylesheet" type="text/css"<link href="style/html5reset-1.6.1.css" type="text/css" rel="stylesheet" media="all"/> 阅读全文
posted @ 2011-11-13 20:21 wkylin 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 在Windows 菜单 → Preferences → General → Content Types,选择 Text ,在下方指定默认编码为UTF-8,并在File associations下面添加文件类型,如 *.js 如果文档的编码不是UTF-8就指定成相应的编码。不过还是建议使用UTF-8编码。 阅读全文
posted @ 2011-11-13 20:13 wkylin 阅读(1383) 评论(0) 推荐(0) 编辑
摘要: //设为首页function SetHome(obj){ var url=window.location.href; try{ obj.style.behavior='url(#default#homepage)';obj.setHomePage(url); } catch(e){ if(window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { ... 阅读全文
posted @ 2011-11-13 18:32 wkylin 阅读(837) 评论(1) 推荐(0) 编辑
摘要: <!--[if ie 6]><script src="http://letskillie6.googlecode.com/svn/trunk/letskillie6.zh_CN.pack.js"></script><![endif]--> 阅读全文
posted @ 2011-11-13 18:28 wkylin 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 一些有前From表单的学习总结。<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>表单元素及脚本</title> </head> <body> <!-- http://www.javascriptkit.com/jsref/select.shtml --> <form id="J_form" name="form" method="post&qu 阅读全文
posted @ 2011-11-11 17:35 wkylin 阅读(399) 评论(0) 推荐(0) 编辑
摘要: function setCookie(cookieName,cookieValue,nDays){ /* 当前日期 */ var today = new Date(); /* 过期时间 */ var expire = new Date(); /* 取默认时长 1天 */ if(nDays == null || nDays==0){ nDays =1; } /* 计算过期时间 */ exprie.setTime(today.getTime()+360000*24*nDays); /* 设置Cookie值 */ doc... 阅读全文
posted @ 2011-11-09 16:27 wkylin 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 序列化:序列化是将对象状态转换为可保持或传输的格式的过程。与序列化相对的是反序列化,它将流转换为对象。这两个过程结合起来,可以轻松地存储和传输数据。function serializeForm(whichForm){ var parts = new Array(); var field = null; for (var i = 0, len = whichForm.elements.length; i < len; i++) { field = whichForm.elements[i]; switch (field.type) { ... 阅读全文
posted @ 2011-11-09 14:21 wkylin 阅读(3595) 评论(0) 推荐(0) 编辑
摘要: /** * 检查浏览器是否支持某种类型的输入控件 * @param {Object} type */function inputSupportsType(type){ if (!document.createElement) { return false; } var input = document.createElement("input"); input.setAttribute("type", type); if (input.type == "text" && type != "text" 阅读全文
posted @ 2011-10-21 13:09 wkylin 阅读(7005) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页