Posted 九月 11th, 2009 by o2ho in category
工作,
技术
<script language="javascript" src="jquery-1.3.2.min.js" type="text/javascript">
</script>
<script language="javascript">
function example_reset_html(id) {
$('#'+id).html($('#'+id).html());
}
</script>
<form>
<div style="float: left;" id="example_file"><input type="file" /></div>
<input t
Posted 八月 5th, 2009 by o2ho in category
技术
第一页内容...
<div style="page-break-after: always;"></div>
第二页内容...
Posted 十月 21st, 2008 by o2ho in category
技术
1. CreateObject("MSXML2.DOMDocument")
this is VB code to create a DOMDocument object using the MSXML2 library
2. new ActiveXObject("MSXML.DOMDocument")
this is javascript to create a DOMDocument object using the MSXML library
3. Server.CreateOject("Microsoft.XMLDOM")
this is ASP vbscript to create a version independent DOMDocument object
Posted 五月 12th, 2008 by o2ho in category
工作
Question:
How to put javascript in a page using masterpage? Error message: Validation (XHTML 1.0 Transitional): Content is not supported outside 'script' or 'asp:content' regions.
Answer:
Place the script inside the <asp:content> tag. Because you are using content area and a master page, the
id will be prefixed with the master and c
Posted 一月 18th, 2008 by o2ho in category
工作,
技术
以前有介绍如何使用命令行调用系统的关机对话框: http://blog.csdn.net/scz123/archive/2005/09/30/492991.aspx
具体方法:开始/运行:rundll32.exe shell32.dll #60
但是,上述方法会存在一问题,XP下无法正常使用该方法进行关机(感谢网友沐烨 发现该问题)。问题原因可能是:正常情况下,关机对话框是有explorer.exe调用,直接使用rundll32调用时无法触发相关命令。
既然使用explorer.exe调用可以,我们可以尝试使用脚本来实现。实现原理:
1. 激活explorer.exe
2. 按ALT+F4
编写VBS脚本如下(将下述内容另存为shutdown.vbs):
D
Posted 一月 17th, 2008 by o2ho in category
工作,
技术
目录
(一).概述
(二).预备条件
(三).代码示例
2.Dom对象和jQuery对象转换示例
3.访问对象内部元素
4.显示/隐藏元素
5.根据条件查询对象元素集合
6.Document.Ready方法示例
7.Html方法示例
8.元素事件注册以及实现示例
9.Filter和no方法使用示例
10.一个很有用的方法:Css方法使用示例
11.滑动显示/隐藏元素
12.操作父元素
13.Toggle方法使用示例
14.Animate方法使用示例
15.改变表格行为(bycalssproperty)
16.操作jQuery属性示例
17.利用Wrap方法动态的修改控件外观
18.动态切换Css样式
19.Prepend-Wrap-Append组合方
Posted 十月 1st, 2007 by o2ho in category
技术
var timedate= new Date("August 8,2008");
var times= "中国北京 奥运会";
var now = new Date();
var date = timedate.getTime() - now.getTime();
var time = Math.floor(date / (1000 * 60 * 60 * 24));
if (time >= 0)
document.write("现在距离 "+times+" 还有: "+time +" 天.")
源码如下:
<script type="text/javascript">
var timeda