- 博客(12)
- 收藏
- 关注
原创 Android平台屏幕软键盘关闭
当EditText被选择,将会自动获得焦点,并且屏幕中会显示一个软键盘。下面的代码将演示,如何关闭软键盘。 InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editTextField.get
2010-01-06 15:02:00 806
转载 中国移动MobileMarket重点支持机型信息-12月24日
致广大的开发者: 目前中国移动MobileMarket重点支持机型共70款,欢迎广大开发者开发以下列表机型的应用;提交到中国移动开发者社区;以后的机型会不断更新,敬请大家关注。终端操作系统终端品牌终端机型屏幕分辨率支持网络应用程序包格式Ophone OMS联想O1e320×480GSMapk,wgt,
2009-12-24 16:51:00 564
原创 Internet Explorer CSS hacks
测试环境:IE6 , IE7, IE8, FF3.0 表达方式:表达方式: body { `background:red } body { ~background:red } body { !background:red } body { @background:red } body { #background:red } body { $background:red } body { %back
2009-12-18 10:00:00 352
转载 7 JavaScript Differences Between Firefox & IE
Although the days of long and tedious code branches to target specific browsers in JavaScript are over, once in a while its still necessary to do some simple code branching and object detection to en
2009-12-18 09:41:00 323
转载 Parsing URLs with the DOM
This short function returns an object containing all possible information you would want to retrieve from a URL:parseURL// This function creates a new anchor element and uses location// prope
2009-12-18 09:39:00 283
转载 JavaScript “Associative Arrays” Considered Harmful
The ProblemTry the following code on an empty page, one without any JavaScript libraries added: Try the following code on an empty page, one without any JavaScript libraries added: var associati
2009-12-18 09:34:00 367
翻译 影响搜索引擎排名的因素2009版
每两年,SEOmoz都向世界各地的SEO专家们做有关搜索引擎排名算法的调查。今年主要收到了美国、英国、加拿大、澳大利亚、新西兰、冰岛、乌克兰和多米尼加等地方的回复。 每个参加调查的人通过回答特定的问题来评估超过100个有关搜索引擎排名的因素。这篇文章代表了这些专家集体的智慧,也给了SEO各个提供了很好的资源。影响搜索引擎排名算法的因素总览 24% 域名的权威性和信誉 22%
2009-12-18 09:24:00 325
原创 常见浏览器的最大并发数限制
浏览器 HTTP/1.1 HTTP/1.0 IE 6, 7 2 4 IE 8 6 6 Firefox 2 2 8 Firefox 3 6 6
2009-12-18 09:07:00 946
原创 apache ab 测试工具
ab的全称是ApacheBench,是 Apache 附带的一个小工具,专门用于 HTTP Server 的benchmark testing,可以同时模拟多个并发请求。工具AB(apache benchmark).在APACHE的bin目录下。格式: ./ab [options] [http://]hostname[:port]/path参数:-n requests Number
2009-12-18 09:04:00 446
原创 Android平台游戏声音播放实践
大部分游戏都有音效,不然游戏乐趣会降低很多,而几乎所有音效都是重复播放的。下面的代码只加载一次音频文件,但是却可以被多次使用。请将音频文件放置在/res/raw路径中。 public static final int SOUND_EXPLOSION = 1; private SoundPool soundPool;private HashMap soundPoolMap;
2009-12-16 16:46:00 564 1
原创 JavaScript性能优化之循环操作
JavaScript中有四种不同类型的循环,for循环、do-while循环和while循环。(第四种类型为for-in循环,用于迭代对象的属性,本文不予讨论。)代码如下:var values = [1, 2, 3, 4, 5];//for 循环for(var i=0; iprocess(values[i]);}//do-while 循环var j=0;do{process(values[j++]
2009-12-16 11:57:00 340
原创 image src 属性为空导致的问题
img标签为空有两种情况,一种是基本的HTML:另一种是在JavaScript中:var img = new Image();img.src = ""; 这两种情况都会导致同样的效果:IE会自动请求当前页面所在的路径,例如页面地址为http://www.example.com/dir/mypage.htm,那么IE将会自动请求一次http://www.e
2009-12-16 11:32:00 1935
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人