default.js
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:2k
- // JavaScript Document
- function attachXMenu(objid){
- var tds=objid.getElementsByTagName('td');
- for(var i=0;i<tds.length;i++){
- with(tds[i]){
- onmouseover=function(){
- with(this){
- filters[0].apply();
- style.background='#4499EE'; //这是鼠标移上去时的背景颜色
- //style.border='1px solid #ffffff'; //边框
- style.color='#ffffff'; //文字颜色
- filters[0].play();
- }
- }
- onmouseout=function(){
- with(this){
- filters[0].apply();
- style.background=''; //这是鼠标离开时的背景颜色
- //style.border='1px solid'; //边框
- style.color='black'; //文字颜色
- filters[0].play();
- }
- }
- }
- }
- }
- function MM_findObj(n, d) { //v4.01
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && d.getElementById) x=d.getElementById(n); return x;
- }
- function MM_showHideLayers() { //v6.0
- var i,p,v,obj,args=MM_showHideLayers.arguments;
- for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
- if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
- obj.visibility=v; }
- }
- function fPopUpCalendarDlg(){
- var ctrlobj=event.srcElement;
- showx = event.screenX - event.offsetX - 4 ;
- showy = event.screenY - event.offsetY + 18;
- newWINwidth = 210 + 4 + 18;
- retval = window.showModalDialog("../js/CalendarDlg.htm", "", "dialogWidth:197px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;help:no;scrollbars:no;Resizable=no; " );
- if( retval != null ){
- ctrlobj.value = retval;
- }else{
- //alert("canceled");
- }
- ctrlobj.blur();
- }