注册 登录
编程论坛 JavaScript论坛

js特效集锦

小笨笨 发布于 2006-06-04 13:32, 44053 次点击

鼠标类

导航类
类似QQ的菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68935&page=1

省、市、地区联动菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=69094&page=1

用JAVASCRIPT实现省份城市的选择:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=67060&page=1

模拟游戏中的弹出出菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68795&page=1

一个页面的导航:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=36803&replyID=&skin=1


效果直逼flash的Div+Css+Js菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=71227&page=1" target="_blank">https://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=69559&page=1

下拉菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68935&page=1

省、市、地区联动菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=69094&page=1

用JAVASCRIPT实现省份城市的选择:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=67060&page=1

模拟游戏中的弹出出菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68795&page=1

一个页面的导航:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=36803&replyID=&skin=1


效果直逼flash的Div+Css+Js菜单:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=71227&page=1

文字类

页面类
满天雪花:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=40886&id=8761&skin=0

玩透javascript的弹出窗口:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=1430&page=1" target="_blank">https://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68846&page=1

30秒后自动关闭窗口:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=40886&id=8761&skin=0

玩透javascript的弹出窗口:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=1430&page=1

时间类
不用图片的钟:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=39010&page=3" target="_blank">https://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=41191&page=1
通过日历选择日期的代码:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=39010&page=3

图片类
用鼠标滚动轴改变图片大小的特效:https://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=65341&page=3

小游戏及程序
计算器:https://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=143626&id=27810&skin=0

正规表达式
javascript中应用正则表达式:https://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=30251&replyID=&skin=1

其它
闪烁的边框:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=69094&page=1

随滚动条移动而移动的层的效果:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=67664&page=1

弹出式分时问候的特效:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68006&page=1

繁简转换:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=23706&id=42695&skin=0

163信箱的移动效果:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=39178&replyID=&skin=1

点击右边的小图片,在左边直接显示大图片,下边还有文字:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=172&id=36733&skin=0

在前三个框中输入数据第四个框中得到他们的和:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=137051&id=26230&skin=0


浮动的广告:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=11521&replyID=&skin=1" target="_blank">https://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=69178&page=1

有关打印、页面设置、打开文件、另存为、属性、加入收藏夹、前进、后退的JS:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=69094&page=1

随滚动条移动而移动的层的效果:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=67664&page=1

弹出式分时问候的特效:http://www.bc-cn.net/bbs/dispbbs.asp?boardID=15&ID=68006&page=1

繁简转换:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=23706&id=42695&skin=0

163信箱的移动效果:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=39178&replyID=&skin=1

点击右边的小图片,在左边直接显示大图片,下边还有文字:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=172&id=36733&skin=0

在前三个框中输入数据第四个框中得到他们的和:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&replyID=137051&id=26230&skin=0


浮动的广告:http://www.bc-cn.net/bbs/dispbbs.asp?BoardID=15&ID=11521&replyID=&skin=1

[此贴子已经被作者于2006-6-12 13:51:54编辑过]

120 回复
#52
zhqifshy2008-01-06 13:34
怎么说找不到网页呀???楼主,是否有限制????
#53
l5251690702008-01-06 16:27
   为什么我都看不成啊 ?
#54
yuanwenqun2008-01-08 16:00
都是已经失效的网页了
#55
chen0927hui2008-01-10 19:49
垃圾的要死
没有一个能打的开的,你还在喊啥!!!!!!!!!!!!!
#56
zplove2008-01-15 17:48
为什么都打不开啊
#57
楚一2008-01-27 17:19
为什么我这全部都是找不到该网页呢`~~~~~~~~~~~~~
#58
fuhuijun2008-01-30 13:14
我 怎么下了啊
#59
mysky1092008-03-07 08:30
收集这么多东东,楼主辛苦了
#60
hu52108982008-03-09 20:22
为什么显示的是,“无法找到指定位置的资源”???
#61
gg3482008-03-28 12:31
为什么打不开撒
#62
fzy6672008-04-11 06:46
怎么我看到的多是该页无法显示啊
#63
powers72008-04-19 17:00
回复 1# 的帖子
看不到啊!!怎么办啊???
#64
阿里阿里2008-04-22 17:25
无法浏览
#65
jordanqiao2008-04-23 18:21
好东西啊
#66
javazl2008-05-04 11:00
good
#67
sskicgah2008-05-04 14:15
顶!!!
#68
dingpin2008-05-08 22:58
还可以吧
#69
dongfly1112008-05-09 17:33
一个也打不开
一个都打不开
#70
srufeng2008-05-26 14:33
现在怎么都打不开了?
#71
矿泉水wz2008-06-12 11:56
我怎么看不见
我怎么看不见
#72
矿泉水wz2008-06-12 11:56
我要看浮动广告栏那个!
但是看不见!
#73
tomtory2008-06-12 16:23
游荡一下
#74
tomtory2008-06-12 16:24
怎么个都看不起的哦
#75
lly320567012008-06-13 20:48
这些该怎么看阿??有人可以告诉我吗?
#76
lly320567012008-06-13 20:55
````````
我怎么看不了,连接不上阿
#77
寂寞的刺猬2008-07-08 13:32
全部都不能用,应该删除掉。
#78
wmx0708032008-07-10 21:35
链接都是打不开的!!!!!!!
#79
ningxd2008-07-13 20:21
打不开啊
#80
ieng6668882008-07-16 12:29
现在大部分都不能看了,还是自己找了,
建议楼主更新一下!
#81
jimsonchoi2008-07-18 11:55
这些效果不错啊!为什么会是死链的呢?请版主更新一下吧!
#82
liaofengxian2008-07-18 12:08
就是看不到
#83
varhome2008-07-23 11:37
lz,连接怎么打不开
#84
youya2008-07-23 14:04
........为撒我这一个链接都打不开滴.....
#85
mysky1092008-07-26 08:32
都不能看了,楼主检查下
#86
zhuyepeng2008-07-31 21:01
支持
#87
恋轩念伊人2008-08-07 00:48
这个好多啊书上都有
#88
恋轩念伊人2008-08-07 00:51
[bo][un]想象力[/un] 在 2007-6-21 16:17 的发言:[/bo]

如何让"漫天雪花"做背景啊??我想拿它做背景有谁知道没啊??

查百度就知道拉
#89
寒行2008-08-10 15:53
连接不上啊
#90
miaojingde2008-08-11 09:09
路过
#91
byters2008-08-15 10:18
为什么我哪个都打不开呢?
为什么我哪个都打不开呢?我也想要,谁给我一分啊?谢谢了......
#92
HERO剧终2008-08-15 10:56
  为什么我这打不开
#93
恋轩念伊人2008-08-16 16:19
这个好啊,支持、
#94
美丽心情862008-08-17 10:40
链接都打不开
#95
吴胜2008-08-18 17:20
顶啊多交一个朋友,就多了一个老师!大家好我是新手!
#96
z3287697062008-08-19 10:16
什么都没有啊
#97
恋轩念伊人2008-08-19 14:03
有些还真的打不开哦
#98
cwdxue2008-08-21 18:07
打不开
#99
BlueMouse2008-09-06 13:08
一个表格视图类
很懒只写了一点点,将就成形! 谁有兴趣可以再加些功能进去!应该会很好用的!
<html>
    <head>
        <title>Test table view class</title>
        <script language="javascript" type="text/javascript">
        <!--
   /*
    * className: TableView
    *  Args: [in] ArgTableType  String
    *     [in] ArgTableName  String
    *     [in] ArgParentElement Object
    *     [in] ArgShowRecordCount Integer
    *  comment:
   */
   function TableView(ArgTableType, ArgTableName, ArgParentElement, ArgShowRecordCount)
   {
    // property
    this.iTableType   = ArgTableType;
    this.sTableName   = ArgTableName;
    this.oParentElement  = ArgParentElement;
    this.iShowRecordCount = ArgShowRecordCount;
    // object
    this.aFileds   = new Array();
    this.aRecords   = new Array();
    this.aSelRecords  = new Array();
    // method
    this.addFiled   = TableView_addFiled;
    this.delFiled   = TableView_delFiled;
    this.addRecord   = TableView_addRecord;
    this.delRecord   = TableView_delRecord;
    this.updateView   = TableView_updateView;
    // event
    this.onMouseOver  = TableView_onMouseOver;
    this.onMouseOut   = TableView_onMouseOut;
    this.onClick   = TableView_onClick;
   }
   /*
    * className: TableView
    *    method: addFiled
    *  Args: [in] ArgFiledName  String
    *     [in] ArgWidth   Integer
    *  comment:
   */
   function TableView_addFiled(ArgFiledType, ArgFiledName, ArgWidth, ArgAlign)
   {
    var iTemp;
   
    iTemp       = this.aFileds.length;
    this.aFileds[iTemp]    = new Array();
    this.aFileds[iTemp]["Type"]  = ArgFiledType;
    this.aFileds[iTemp]["Name"]  = ArgFiledName;
    this.aFileds[iTemp]["Width"] = ArgWidth;
    this.aFileds[iTemp]["Align"] = ArgAlign;
   }
   /*
    * className: TableView
    *    method: delFiled
    *  Args: [in] ArgFiledName  String
    *  comment:
   */
   function TableView_delFiled(ArgFiledName)
   {
    var iIndex;
   
    for (iIndex=0;iIndex<this.aFileds.length;iIndex++)
    {
     if (this.aFileds[iIndex]["Name"]==ArgFiledName)
     {
      this.aFileds.splice(iIndex,1);
      return(0);
     }
    }
   }
   /*
    * className: TableView
    *    method: addRecord
    *  Args: [in] ArgRecord Array
    *  comment:
   */
   function TableView_addRecord(ArgRecord)
   {
    var iIndex, iTemp;
   
    iTemp     = this.aRecords.length;
    this.aRecords[iTemp] = new Array();
    for (iIndex=0;iIndex<this.aFileds.length;iIndex++)
    {
     this.aRecords[iTemp][this.aFileds[iIndex]["Name"]] = ArgRecord[this.aFileds[iIndex]["Name"]];
    }
   }
   /*
    * className: TableView
    *    method: delRecord
    *  Args: [in] ArgFiledName String
    *     [in] ArgValue  String
    *  comment:
   */
   function TableView_delRecord(ArgFiledName, ArgValue)
   {
    var iIndex;
   
    for (iIndex=0;iIndex<this.aRecords.length;iIndex++)
    {
     if (this.aRecords[iIndex][ArgFiledName]==ArgValue)
     {
      this.aRecords.splice(iIndex,1);
      return(0);
     }
    }
   }
   /*
    * className: TableView
    *    method: onMouseOver
    *  Args: [in] oTableView class
    *  comment:
   */
   function TableView_onMouseOver(oTableView)
   {
    var iIndex;

    if (event.srcElement.className=="RecordItem")
    {
     for (iIndex=0;iIndex<oTableView.aSelRecords.length;iIndex++)
     {
      if (event.srcElement.parentElement.id==oTableView.aSelRecords[iIndex])
      {
       return(0);
      }
     }
     event.srcElement.parentElement.style.backgroundColor = "#d9ffff";
    }
    if (event.srcElement.className=="CmdButton")
    {
     event.srcElement.style.color = "#ee2200";
    }
   }
   /*
    * className: TableView
    *    method: onMouseOver
    *  Args: [in] oTableView class
    *  comment:
   */
   function TableView_onMouseOut(oTableView)
   {
    var iIndex;

    if (event.srcElement.className=="RecordItem")
    {
     for (iIndex=0;iIndex<oTableView.aSelRecords.length;iIndex++)
     {
      if (event.srcElement.parentElement.id==oTableView.aSelRecords[iIndex])
      {
       return(0);
      }
     }
     event.srcElement.parentElement.style.backgroundColor = "#ffffff";
    }
    if (event.srcElement.className=="CmdButton")
    {
     event.srcElement.style.color = "#0084ff";
    }
   }
   /*
    * className: TableView
    *    method: onClick
    *  Args: [in] oTableView class
    *  comment:
   */
   function TableView_onClick(oTableView)
   {
    var iIndex, iJndex;

    if (event.srcElement.className=="RecordItem")
    {
     for (iIndex=0;iIndex<oTableView.aSelRecords.length;iIndex++)
     {
      if (event.srcElement.parentElement.id==oTableView.aSelRecords[iIndex])
      {
       oTableView.aSelRecords.splice(iIndex,1);
       event.srcElement.parentElement.style.backgroundColor = "#d9ffff";
       document.all.LbaSelRecordCount.innerHTML    = "&nbsp;" + oTableView.aSelRecords.length + "&nbsp;&nbsp;";
       return(0);
      }
     }
     oTableView.aSelRecords[oTableView.aSelRecords.length] = event.srcElement.parentElement.id;
     event.srcElement.parentElement.style.backgroundColor = "#fff0ff";
     document.all.LbaSelRecordCount.innerHTML    = "&nbsp;" + oTableView.aSelRecords.length + "&nbsp;&nbsp;";
    }
    if (event.srcElement.className=="CmdButton")
    {
     switch (event.srcElement.innerText)
     {
      case "AddRecord":
       PopupWindow("AddRecord", null);
       break;
      case "DelRecord":
       if (oTableView.aSelRecords.length>0)
       {
        for (iIndex=0;iIndex<oTableView.aSelRecords.length;iIndex++)
        {
         oTableView.delRecord(oTableView.aFileds[0]["Name"], oTableView.aSelRecords[iIndex].substring(17, oTableView.aSelRecords[iIndex].length));
        }
        oTableView.aSelRecords.splice(0,oTableView.aSelRecords.length);
        oTableView.updateView();
       }
       break;
      case "MifRecord":
       alert("MifRecord");
       break;
      case "UpdateToDataBase":
       alert("UpdateToDataBase");
           
     }
    }
   }
   /*
    * className: TableView
    *    method: updateView
    *  Args: not
    *  comment:
   */
   function TableView_updateView()
   {
    var oTableHead_Div, oSpan, oTableCaption_Div, oTableToolsbar, oTableBody_Div, oTr_Div, oTd_Div;
    var iTableWidth, iPrevElementLeft, iIndex, iJndex;

    this.oParentElement.innerHTML = "";
   
    if (this.iTableType==0)
    {
     if (this.aFileds.length>0)
     {
      // create table head element from element a 'DIV'
      iTableWidth=0;
      for (iIndex=0;iIndex<this.aFileds.length;iIndex++)
      {
       iTableWidth+=parseInt(this.aFileds[iIndex]["Width"]);
      }
      oTableHead_Div      = document.createElement("DIV");
      oTableHead_Div.style.position  = "absolute";
      oTableHead_Div.style.left   = 0;
      oTableHead_Div.style.top   = 0;
      if (this.aRecords.length>this.iShowRecordCount)
      {
       oTableHead_Div.style.width  = iTableWidth + 17 - this.aFileds.length;
      }
      else
      {
       oTableHead_Div.style.width  = iTableWidth - this.aFileds.length;
      }
      oTableHead_Div.style.height   = 50;
      oTableHead_Div.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#ffffff,endColorstr=#E2F2FC)";
      oTableHead_Div.style.borderStyle = "solid";
      oTableHead_Div.style.borderColor = "#75c5f0";
      oTableHead_Div.style.borderWidth = 1;
      oTableHead_Div.style.textAlign  = "right";
      oTableHead_Div.style.verticalAlign = "bottom";
      oTableHead_Div.style.paddingTop  = 30;
      oTableHead_Div.style.fontSize  = 12;
      oTableHead_Div.style.fontFamily  = "Verdana";
      oTableHead_Div.style.fontWeight  = "bold";

      oSpan    = document.createElement("SPAN");
      oSpan.innerText  = "TableName:";
      oTableHead_Div.appendChild(oSpan);
      oSpan    = null;
      oSpan    = document.createElement("SPAN");
      oSpan.style.color = "#0084ff";
      oSpan.innerHTML  = "&nbsp;" + this.sTableName + "&nbsp;&nbsp;&nbsp;&nbsp;";
      oTableHead_Div.appendChild(oSpan);
      oSpan    = null;
      oSpan    = document.createElement("SPAN");
      oSpan.innerHTML  = "RecordCount:";
      oTableHead_Div.appendChild(oSpan);
      oSpan    = null;
      oSpan    = document.createElement("SPAN");
      oSpan.id   = "LbaRecordCount";
      oSpan.style.color = "#ff0096";
      oSpan.innerHTML  = "&nbsp;" + this.aRecords.length + "&nbsp;&nbsp;";
      oTableHead_Div.appendChild(oSpan);
      oSpan    = null;
      oSpan    = document.createElement("SPAN");
      oSpan.innerHTML  = "SelRecordCount:";
      oTableHead_Div.appendChild(oSpan);
      oSpan    = null;
      oSpan    = document.createElement("SPAN");
      oSpan.id   = "LbaSelRecordCount";
      oSpan.style.color = "#ff0096";
      oSpan.innerHTML  = "&nbsp;" + this.aSelRecords.length + "&nbsp;&nbsp;";
      oTableHead_Div.appendChild(oSpan);
      oSpan    = null;
      this.oParentElement.appendChild(oTableHead_Div);

      // create table caption element from element a 'DIV'
      oTableCaption_Div      = document.createElement("DIV");
      oTableCaption_Div.style.position  = "absolute";
      oTableCaption_Div.style.left   = 0;
      oTableCaption_Div.style.top    = 50;
      oTableCaption_Div.style.width   = parseInt(this.aFileds[0]["Width"]);
      oTableCaption_Div.style.height   = 25;
      oTableCaption_Div.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#cde9fa,endColorstr=#ffffff)";
      oTableCaption_Div.style.borderStyle  = "solid";
      oTableCaption_Div.style.borderColor  = "#75c5f0";
      oTableCaption_Div.style.borderWidth  = 1;
      oTableCaption_Div.style.textAlign  = this.aFileds[0]["Align"];
      oTableCaption_Div.style.verticalAlign = "middle";
      oTableCaption_Div.style.paddingTop  = 3;
      oTableCaption_Div.style.paddingLeft  = 5;
      oTableCaption_Div.style.paddingRight = 5;
      oTableCaption_Div.style.fontSize  = 12;
      oTableCaption_Div.style.fontFamily  = "Verdana";
      oTableCaption_Div.style.fontWeight  = "bold";
      oTableCaption_Div.innerText    = this.aFileds[0]["Name"];
      
      this.oParentElement.appendChild(oTableCaption_Div);
      iPrevElementLeft      = 0;
      
      for (iIndex=1;iIndex<this.aFileds.length;iIndex++)
      {
       iPrevElementLeft      += parseInt(this.aFileds[iIndex-1]["Width"])-1;
       oTableCaption_Div      = document.createElement("DIV");
       oTableCaption_Div.style.position  = "absolute";
       oTableCaption_Div.style.left   = iPrevElementLeft;
       oTableCaption_Div.style.top    = 50;
       oTableCaption_Div.style.width   = parseInt(this.aFileds[iIndex]["Width"]);
       oTableCaption_Div.style.height   = 25;
       oTableCaption_Div.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#cde9fa,endColorstr=#ffffff)";
       oTableCaption_Div.style.borderStyle  = "solid";
       oTableCaption_Div.style.borderColor  = "#75c5f0";
       oTableCaption_Div.style.borderWidth  = 1;
       oTableCaption_Div.style.textAlign  = this.aFileds[iIndex]["Align"];
       oTableCaption_Div.style.paddingTop  = 3;
       oTableCaption_Div.style.paddingLeft  = 5;
       oTableCaption_Div.style.paddingRight = 5;
       oTableCaption_Div.style.fontSize  = 12;
       oTableCaption_Div.style.fontFamily  = "Verdana";
       oTableCaption_Div.style.fontWeight  = "bold";
       oTableCaption_Div.innerText    = this.aFileds[iIndex]["Name"];
      
       this.oParentElement.appendChild(oTableCaption_Div);
      }
      if (this.aRecords.length>this.iShowRecordCount)
      {
       iPrevElementLeft      += parseInt(this.aFileds[iIndex-1]["Width"])-1;
       oTableCaption_Div      = document.createElement("DIV");
       oTableCaption_Div.style.position  = "absolute";
       oTableCaption_Div.style.left   = iPrevElementLeft;
       oTableCaption_Div.style.top    = 50;
       oTableCaption_Div.style.width   = 17;
       oTableCaption_Div.style.height   = 25;
       oTableCaption_Div.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#cde9fa,endColorstr=#ffffff)";
       oTableCaption_Div.style.borderStyle  = "solid";
       oTableCaption_Div.style.borderColor  = "#75c5f0";
       oTableCaption_Div.style.borderWidth  = 1;
       this.oParentElement.appendChild(oTableCaption_Div);
      }
      // create table body element from element a 'DIV'
      oTableBody_Div      = document.createElement("DIV");
      oTableBody_Div.style.position  = "absolute";
      oTableBody_Div.style.left   = 0;
      oTableBody_Div.style.top   = 75;     
      if (this.aRecords.length>this.iShowRecordCount)
      {
       oTableBody_Div.style.width  = iTableWidth + 17 - this.aFileds.length;
      }
      else
      {
       oTableBody_Div.style.width  = iTableWidth - this.aFileds.length;
      }
      oTableBody_Div.style.height   = parseInt(this.iShowRecordCount * 19)+1;
      oTableBody_Div.style.overflowY  = "auto";
      
      // create table record item
      for (iJndex=0;iJndex<this.aRecords.length;iJndex++)
      {
       oTr_Div       = document.createElement("DIV");
       oTr_Div.style.position   = "absolute";
       oTr_Div.style.left    = 0;
       oTr_Div.style.top    = (iJndex * 19);
       oTr_Div.style.height   = 20;
       oTr_Div.style.backgroundColor = "#ffffff";
       oTr_Div.style.width    = iTableWidth - this.aFileds.length;
       oTr_Div.style.cursor   = "hand";
       oTr_Div.id      = "RecordFirstFiild:" + this.aRecords[iJndex][this.aFileds[0]["Name"]];
       oTd_Div       = document.createElement("DIV");
       oTd_Div.style.position   = "absolute";
       oTd_Div.style.left    = 0;
       oTd_Div.style.top    = 0;
       oTd_Div.style.height   = 20;
       oTd_Div.style.width    = parseInt(this.aFileds[0]["Width"]);
       oTd_Div.style.textAlign   = this.aFileds[0]["Align"];
       oTd_Div.style.paddingTop  = 2;
       oTd_Div.style.paddingLeft  = 5;
       oTd_Div.style.paddingRight  = 5;
       oTd_Div.style.fontSize   = 12;
       oTd_Div.style.fontFamily  = "Verdana";
       oTd_Div.style.fontWeight  = "400";
       oTd_Div.style.borderStyle  = "solid";
       oTd_Div.style.borderColor  = "#bce2f8";
       oTd_Div.style.borderWidth  = 1;
       oTd_Div.className    = "RecordItem";
       oTd_Div.innerText    = this.aRecords[iJndex][this.aFileds[0]["Name"]];
       oTr_Div.appendChild(oTd_Div);
       iPrevElementLeft    = 0;
       for (iIndex=1;iIndex<this.aFileds.length;iIndex++)
       {
        iPrevElementLeft    += parseInt(this.aFileds[iIndex-1]["Width"])-1;
        oTd_Div       = document.createElement("DIV");
        oTd_Div.style.position   = "absolute";
        oTd_Div.style.left    = iPrevElementLeft;
        oTd_Div.style.top    = 0;
        oTd_Div.style.height   = 20;
        oTd_Div.style.width    = parseInt(this.aFileds[iIndex]["Width"]);
        oTd_Div.style.textAlign   = this.aFileds[iIndex]["Align"];
        oTd_Div.style.paddingTop  = 2;
        oTd_Div.style.paddingLeft  = 5;
        oTd_Div.style.paddingRight  = 5;
        oTd_Div.style.fontSize   = 12;
        oTd_Div.style.fontFamily  = "Verdana";
        oTd_Div.style.fontWeight  = "400";
        oTd_Div.style.borderStyle  = "solid";
        oTd_Div.style.borderColor  = "#bce2f8";
        oTd_Div.style.borderWidth  = 1;
        oTd_Div.className    = "RecordItem";
        oTd_Div.innerText    = this.aRecords[iJndex][this.aFileds[iIndex]["Name"]];
        oTr_Div.appendChild(oTd_Div);
        oTd_Div       = null;      
       }
       oTableBody_Div.appendChild(oTr_Div);
      }

      this.oParentElement.appendChild(oTableBody_Div);
      
      // add table tools bar
      oTableToolsbar      = document.createElement("DIV");
      oTableToolsbar.style.position  = "absolute";
      oTableToolsbar.style.left   = 0;
      oTableToolsbar.style.top   = 75 + parseInt(oTableBody_Div.style.left) + parseInt(oTableBody_Div.style.height);
      if (this.aRecords.length>this.iShowRecordCount)
      {
       oTableToolsbar.style.width  = iTableWidth + 17 - this.aFileds.length;
      }
      else
      {
       oTableToolsbar.style.width  = iTableWidth - this.aFileds.length;
      }
      oTableToolsbar.style.height   = 30;
      oTableToolsbar.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#cde9fa,endColorstr=#ffffff)";
      oTableToolsbar.style.borderStyle = "solid";
      oTableToolsbar.style.borderColor = "#75c5f0";
      oTableToolsbar.style.borderWidth = 1;
      oTableToolsbar.style.textAlign  = "right";
      oTableToolsbar.style.paddingTop  = 6;
      oTableToolsbar.style.fontSize  = 12;
      oTableToolsbar.style.fontFamily  = "Verdana";
      oTableToolsbar.style.fontWeight  = "bold";
      oTableToolsbar.style.color   = "#bbbbbb";
      oSpan        = document.createElement("SPAN");
      oSpan.style.color     = "#0084ff";
      oSpan.style.textAlign    = "center";
      oSpan.style.cursor     = "hand";
      oSpan.className      = "CmdButton";
      oSpan.innerText      = "AddRecord";
      oTableToolsbar.appendChild(oSpan);
      oSpan        = null;
      oTableToolsbar.innerHTML   += "&nbsp;|&nbsp;";
      oSpan        = document.createElement("SPAN");
      oSpan.style.color     = "#0084ff";
      oSpan.style.textAlign    = "center";
      oSpan.style.cursor     = "hand";
      oSpan.className      = "CmdButton";
      oSpan.innerText      = "DelRecord";
      oTableToolsbar.appendChild(oSpan);
      oSpan        = null;
      oTableToolsbar.innerHTML   += "&nbsp;|&nbsp;";
      oSpan        = document.createElement("SPAN");
      oSpan.style.color     = "#0084ff";
      oSpan.style.textAlign    = "center";
      oSpan.style.cursor     = "hand";
      oSpan.className      = "CmdButton";
      oSpan.innerText      = "MifRecord";
      oTableToolsbar.appendChild(oSpan);
      oSpan        = null;
      oTableToolsbar.innerHTML   += "&nbsp;|&nbsp;";
      oSpan        = document.createElement("SPAN");
      oSpan.style.color     = "#0084ff";
      oSpan.style.textAlign    = "center";
      oSpan.style.cursor     = "hand";
      oSpan.className      = "CmdButton";
      oSpan.innerText      = "UpdateToDataBase";
      oTableToolsbar.appendChild(oSpan);
      oSpan        = null;
      oTableToolsbar.innerHTML   += "&nbsp;|&nbsp;&nbsp;&nbsp;";

      this.oParentElement.appendChild(oTableToolsbar);

      if (this.aRecords.length>this.iShowRecordCount)
      {
       this.oParentElement.style.width  = iTableWidth + 17;
      }
      else
      {
       this.oParentElement.style.width  = iTableWidth;
      }
      this.oParentElement.style.height  = 75 + parseInt(oTableBody_Div.style.left) + parseInt(oTableBody_Div.style.height) + parseInt(oTableToolsbar.style.height);
     }
    }
   }

   function PopupWindow(argTitle, argFileds)
   {
    var oBaseFrame, oWindowCaption, oWindowBody, oWindowToolBar, oSpan;

    // create popup window base frame
    oBaseFrame       = document.createElement("DIV");
    oBaseFrame.style.position   = "absolute";
    oBaseFrame.style.left    = parseInt(document.body.offsetWidth) / 2 - 150;
    oBaseFrame.style.top    = parseInt(document.body.offsetHeight) / 2 - 150;
    oBaseFrame.style.width    = 300;
    oBaseFrame.style.height    = 330;
    oBaseFrame.style.borderWidth  = 1;
    oBaseFrame.style.borderStyle  = "solid";
    oBaseFrame.style.borderColor  = "#aaaaaa";
    oBaseFrame.style.backgroundColor = "#ffffff";

    // create popup window caption
    oWindowCaption      = document.createElement("DIV");
    oWindowCaption.style.position  = "absolute";
    oWindowCaption.style.left   = 0;
    oWindowCaption.style.top   = 0;
    oWindowCaption.style.width   = 298;
    oWindowCaption.style.height   = 25;
    oWindowCaption.style.borderWidth = 1;
    oWindowCaption.style.borderStyle = "solid";
    oWindowCaption.style.borderColor = "#bce2f8";
    oWindowCaption.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#cde9fa,endColorstr=#ffffff)";
    oWindowCaption.style.paddingTop  = 3;
    oWindowCaption.style.paddingLeft = 5;
    oWindowCaption.style.fontSize  = 12;
    oWindowCaption.style.fontWeight  = 700;
    oWindowCaption.style.fontFamily  = "Verdana";
    oWindowCaption.innerText   = argTitle;
    oBaseFrame.appendChild(oWindowCaption);

    oWindowBody       = document.createElement("DIV");
    oWindowBody.style.position   = "absolute";
    oWindowBody.style.left    = 0;
    oWindowBody.style.top    = 25;
    oWindowBody.style.height   = 250;
    oBaseFrame.appendChild(oWindowBody);

    oWindowToolBar      = document.createElement("DIV");
    oWindowToolBar.style.position  = "absolute";
    oWindowToolBar.style.left   = 0;
    oWindowToolBar.style.top   = 298;
    oWindowToolBar.style.width   = 298;
    oWindowToolBar.style.height   = 30;
    oWindowToolBar.style.borderWidth = 1;
    oWindowToolBar.style.borderStyle = "solid";
    oWindowToolBar.style.borderColor = "#bce2f8";
    oWindowToolBar.style.filter   = "progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#cde9fa,endColorstr=#ffffff)";
    oWindowToolBar.style.paddingTop  = 6;
    oWindowToolBar.style.paddingRight = 5;
    oWindowToolBar.style.textAlign  = "right";
    oWindowToolBar.style.fontSize  = 12;
    oWindowToolBar.style.fontWeight  = 700;
    oWindowToolBar.style.fontFamily  = "Verdana";
    oWindowToolBar.style.color   = "#bbbbbb";
    oBaseFrame.appendChild(oWindowToolBar);

    oSpan        = document.createElement("SPAN");
    oSpan.style.color     = "#0084ff";
    oSpan.style.textAlign    = "center";
    oSpan.style.cursor     = "hand";
    oSpan.className      = "CmdButton";
    oSpan.innerText      = "Enter";
    oWindowToolBar.appendChild(oSpan);
    oSpan        = null;
    oWindowToolBar.innerHTML   += "&nbsp;|&nbsp;";
    oSpan        = document.createElement("SPAN");
    oSpan.style.color     = "#0084ff";
    oSpan.style.textAlign    = "center";
    oSpan.style.cursor     = "hand";
    oSpan.className      = "CmdButton";
    oSpan.innerText      = "Rest";
    oWindowToolBar.appendChild(oSpan);
    oSpan        = null;
    oWindowToolBar.innerHTML   += "&nbsp;|&nbsp;";
    oSpan        = document.createElement("SPAN");
    oSpan.style.color     = "#0084ff";
    oSpan.style.textAlign    = "center";
    oSpan.style.cursor     = "hand";
    oSpan.className      = "CmdButton";
    oSpan.innerText      = "Close";
    oWindowToolBar.appendChild(oSpan);
    oSpan        = null;
    oWindowToolBar.innerHTML   += "&nbsp;|&nbsp;";
    document.body.appendChild(oBaseFrame);

   }

   /*==================================================================================================================================
    *
    * Method: main
    *   Args: not
    *
   */
   function main()
   {
    var oTableView = new TableView(0, "RenInfoTable", oFrame, 15);
    var newRecord = new Array();

    document.body.onmouseover  = function()
    {
     oTableView.onMouseOver(oTableView);
    };
    document.body.onmouseout  = function()
    {
     oTableView.onMouseOut(oTableView);
    };
    document.body.onclick   = function()
    {
     oTableView.onClick(oTableView);
    };
    //
    // add filed to table view.
    oTableView.addFiled("TEXT", "SerialNo", 80, "right");
    oTableView.addFiled("TEXT", "ClassName", 120, "left");
    oTableView.addFiled("TEXTDOC", "Commment", 450, "left");

    newRecord["SerialNo"] = "1";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "2";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "3";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "4";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "5";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "6";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "7";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "8";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "9";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "10";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "11";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "12";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "13";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "14";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "15";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "16";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "17";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "18";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "19";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "20";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "21";
    newRecord["ClassName"] = "Weipengyuan";
    newRecord["Commment"] = "Nan";
    oTableView.addRecord(newRecord);
    newRecord["SerialNo"] = "22";
    newRecord["ClassName"] = "YuRui";
    newRecord["Commment"] = "Ni";
    oTableView.addRecord(newRecord);
    oTableView.updateView();
    window.onresize();
   }

   window.onload = main;

   window.onresize = function(){
    document.all.oFrame.style.left = parseInt(document.body.offsetWidth) / 2 - parseInt(document.all.oFrame.style.width) / 2;
    document.all.oFrame.style.top = parseInt(document.body.offsetHeight) / 2 - parseInt(document.all.oFrame.style.height) / 2;
   };

  -->
  </script>
    </head>
    <body>
  <div id="oFrame" style="position:absolute; left:0; top:0;">
  </div>
    </body>
</html>
#100
jingangel_2008-09-17 17:12
已经有很多页面不能看了
#101
zklhp2008-10-09 13:11
[bo][un]jingangel_[/un] 在 2008-9-17 17:12 的发言:[/bo]

已经有很多页面不能看了


9494
123