显示模式:摘要 列表

阅读全文…

18 9 月

JavaScript取火柴游戏

Author:寒云 | Tags:JavaScript , 游戏

阅读全文…

“dir /x”命令:显示文件的“8.3格式的文件名”
“del /ah”命令:删除带有隐藏属性的文件

阅读全文…

9 9 月

常见Web2.0网站配色

Author:寒云 | Tags:web2.0 , 配色

阅读全文…

14 8 月

Javascript数组随机排序

Author:寒云 | Tags:JavaScript , 排序

js中array对象的splice方法
The splice() method is used to remove and add new elements to an array.
splice()可向数组删除并加入新的元素。

语法
arrayObject.splice(index,howmany,element1,.....,elementX)

index
Required. Specify where to add/remove elements. Must be a number
必选项。指定在哪个位置加入/删除元素,必须是数字。

howmany
Required Specify how many elements should be removed. Must be a number, but can be "0"
必选项。指定有多少元素应该被删除。必须是数字,可以是"0"

element1
Optional. Specify a new element to add to the array
可选。指定要加入到数组中的新元素

elementX
Optional. Several elements can be added
可选。可以加入多个元素

阅读全文…

12 6 月

网页配色方案

Author:寒云 | Tags:配色

阅读全文…

Code:
  1. <script>
  2. <!--//
  3. var n = 4.2;
  4. document.write(Math.floor(n));//取小于等于n的最大整数(下取整)
  5. document.write(Math.ceil(n));//取大于等于n的最小整数(上取整)
  6. document.write(Math.round(n));//四舍五入(与符号无关)
  7. //-->
  8. </script>

阅读全文…

24 5 月

表单中回车键实现Tab键的功能

Author:寒云 | Tags:Tab键

document.onkeydown = function nextFocus()
{
var currentID = document.activeElement.id;
var Num;
if(currentID!=null && currentID!="")
{
Num = getNumber(currentID);
if(window.event.keyCode==13 && Num {
currentForm[Num+1].focus();
return false;
}
}
}

阅读全文…

8 5 月

用JavaScript写的贪食蛇游戏

Author:寒云 | Tags:JavaScript , 游戏

说明:1.绿色方块代表蛇,橙色或红色方块代表食物,黑色方块代表障碍物。2.用方向键控制蛇的方向,空格键暂停,方向键开始。

阅读全文…

23 3 月

asp常见错误

Author:寒云 | Tags:asp , asp错误

错误信息:
Response 对象, ASP 0106 (0x80020005)
遇到未处理的数据类型。
出错原因:
response.write(variable)或<%=variable%>
其中variable为“未处理的数据类型”,如数组等。

阅读全文…

当前页: 1 / 2«««12»»»