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

javascript分页效果的实现

现在公司有很多ministe,都有公布获奖名单的页面。而且这些页面都是静态的。但是由于有时候获奖的人数众多,不得不设计成分页的效果。目前公司的coding针对这种情况没有很好的解决方法。于是今天我抽空写了一个简单的基于javascript的实现方法。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>javascript 获奖名单</title>
<script language="javascript" type="text/javascript">
//[CDATA[
   var records = [{no:1,name:"gordon",tel:"13813866456"},
      {no:2,name:"gordon",tel:"13813866456"},
      {no:3,name:"gordon",tel:"13813866456"},
      {no:4,name:"gordon",tel:"13813866456"},
      {no:5,name:"gordon",tel:"13813866456"},
      {no:6,name:"gordon",tel:"13813866456"},
      {no:7,name:"gordon",tel:"13813866456"},
      {no:8,name:"gordon",tel:"13813866456"},
      {no:9,name:"gordon",tel:"13813866456"},
      {no:10,name:"gordon",tel:"13813866456"},
      {no:11,name:"gordon",tel:"13813866456"},
      {no:12,name:"gordon",tel:"13813866456"},
      {no:13,name:"gordon",tel:"13813866456"},
      {no:14,name:"gordon",tel:"13813866456"},
      {no:15,name:"gordon",tel:"13813866456"},
      {no:16,name:"gordon",tel:"13813866456"},
      {no:17,name:"gordon",tel:"13813866456"},
      {no:18,name:"gordon",tel:"138138664


相关文档:

Javascript常用的经典技巧

 
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. onpaste="return false" 不准粘贴
4. oncopy="return false;" oncut=" ......

javascript框架之继承机制

大一点的框架都有这个东西。Prototype原来的继承机制非常弱,为了与mootools对抗也强化了这一方面。嘛,要用原型继承来模仿类继承,都基本存在一个克隆函数。把父类的原型属性复制到子类上去。理念的东西暂时这么多,动手实践一下最实际。我们设计一个数组类,拥有原生数组的能力与新扩展的能力。

var isNumber ......

html网页中使用javascript脚本调用xml文档实例

 本示例是要实现用javascript脚本读取xml文档,在xml文档中实现约束功能,test.html文件代码如下:
<html>
 <head>
 <meta http-equiv="content-type" content="text/html;charset=UTF-8">
 <script type="text/javascript">
        ......

JavaScript 常用55个例子

 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)> <td>no </table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. onpaste="return false" 不准粘贴
4. oncopy="return false;" onc ......

用JavaScript获取客户端MAC地址(转)

 <HTML>  
<HEAD><TITLE>WMI Scripting HTML</TITLE>  
    <META http-equiv=Content-Type content="text/html; charset=gb2312">  
    <SCRIPT language=JScript event="OnCompleted(hResult,pErrorObject, p ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号