易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript 跳转 三种

<html>
<head>
<mce:script language="javascript"><!--

function old_page()
{
window.location = "http://www.jb51.net"
}
function replace()
{
window.location.replace("http://www.jb51.net")
}
function new_page()
{
window.open("http://www.jb51.net")
}
// --></mce:script>
</head>
<body>
<input type="button" onclick="new_page()" value="new_page"/>
<input type="button" onclick="old_page()" value="old_page"/>
<input type="button" onclick="replace()" value="replace"/>
</body>


相关文档:

JavaScript 获取对象的高度和宽度详细说明

scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......

MD5 javascript

 /*****************************************************************************
* md5.js
*
* A JavaScript implementation of the RSA Data Security, Inc. MD5
* Message-Digest Algorithm.
*
* Copyright (C) Paul Johnston 1999. Distributed under the LGPL.
************************************** ......

JAVASCRIPT查询数据库

 关于JAVASCRIPT查询数据库的代码
代码为:
var   conn   =   Server.CreateObject("ADODB.Connection");
conn.ConnectionString   =   "Provider=Microsoft.Jet.OLEDB.4.0;Data   Source="   +   Server.MapPath("shjzd.mdb"); ......

javascript 获取css 属性

 我们有时获取 styl.width为空的时候,可以获取css中的width..
但ie and ff 是不同的。。
ie:
obj.currentStyle['width'] 
ff:
var css = document.defaultView.getComputedStyle(obj, null);  
css.getPropertyValue('width')  ......

如何在Java 代码中执行 JavaScript

 在实际应用中,可能会碰到这样的情况,需要在Java代码中执行JavaScript。
 例如:
  import java.io.IOException;
import java.io.PrintWriter;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public cl ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号