- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 对象的隐式实例化与链式调用
[code="Javascript"]Untitled Document(function(){ this.run1=function(){ alert("1"); return this; } this.run2=function(){ alert("2"); return this; } this.run3=funct...
2010-10-25 17:15:40 104
原创 跟踪this
[code="Javascript"]function test(){ var obj=this; this.message="hello"; this.run=function(){ alert(obj.message); setTimeout(obj.run,1000); }}new test().run();[/code]
2010-10-25 16:50:27 106
原创 获取预览图片的长宽
DXImageTransform.Microsoft.AlphaImageLoader 设置sizingMethod为image获取该节点的offsetWidth和offsetHeight就可以了之后根据程序逻辑对图片进行相应操作对导航菜单栏进行鼠标onmouseover、onmouseout等事件捕捉改变字体大小实现动态菜单...
2010-10-25 10:03:16 107
原创 java 程序员的情书
[size=large][b]我能抽象出整个世界... 但是我却不能抽象出你... 你肯定是一个单例,因为你是那样的独一无二... 所以我的世界并不完整... 我可以重载甚至覆盖这个世界里的任何一种方法... 但是却不能覆盖对你的思念... 也许命中注定了 你与我存在于不同的包里... 在你的世界里,你被烙上了私有的属性... 我用尽全身力气...
2010-10-20 12:52:33 80
原创 中国传统时辰与现代小时对应关系
var hour=new array();hour[0]="子时";hour[1]="丑时";hour[2]="丑时";hour[3]="寅时";hour[4]="寅时";hour[5]="卯时";hour[6]="卯时";hour[7]="辰时";hour[8]="辰时";hour[9]=
2010-10-09 15:33:16 238
原创 使用js随机更换相对路径img下的0-count的jpeg图片
Untitled Documentvar count=255;var control=setInterval("showpic()",10);function showpic(){var errors=new Array();for(i=0;i
2010-10-09 15:16:37 86
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人