Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv5499

Modified Files:
        dynlayer.js 
Log Message:
a few minor changes

Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** dynlayer.js 2001/02/10 20:43:16     1.25
--- dynlayer.js 2001/02/11 17:40:24     1.26
***************
*** 272,276 ****
                else if (dlyr.w!=null && dlyr.h!=null);
                        s+=' clip="0,0,'+dlyr.w+','+dlyr.h+'"';
! 
                if (dlyr.bgImage!=null) s+=' background="'+dlyr.bgImage+'"';
                if (dlyr.bgColor!=null) s+=' bgcolor="'+dlyr.bgColor+'"';
--- 272,276 ----
                else if (dlyr.w!=null && dlyr.h!=null);
                        s+=' clip="0,0,'+dlyr.w+','+dlyr.h+'"';
!               if (dlyr.z) s+=' zIndex='+dlyr.z;
                if (dlyr.bgImage!=null) s+=' background="'+dlyr.bgImage+'"';
                if (dlyr.bgColor!=null) s+=' bgcolor="'+dlyr.bgColor+'"';
***************
*** 292,297 ****
                else if (dlyr.w!=null && dlyr.h!=null);
                        s+=' clip:rect(0px '+dlyr.w+'px '+dlyr.h+'px 0px);';
                if (dlyr.bgImage!=null) s+=' background-image:url('+dlyr.bgImage+');' 
!               if (dlyr.bgColor!=null) s+=' background:'+dlyr.bgColor+';'
                if (is.ie55 && dlyr.bgImage==null && dlyr.html==null) s+=' 
background-image:url(javascript:null);' 
                s+=' position:absolute;">';
--- 292,298 ----
                else if (dlyr.w!=null && dlyr.h!=null);
                        s+=' clip:rect(0px '+dlyr.w+'px '+dlyr.h+'px 0px);';
+               if (dlyr.z) s+=' zIndex='+dlyr.z;
                if (dlyr.bgImage!=null) s+=' background-image:url('+dlyr.bgImage+');' 
!               if (dlyr.bgColor!=null) s+=' background-color:'+dlyr.bgColor+';'
                if (is.ie55 && dlyr.bgImage==null && dlyr.html==null) s+=' 
background-image:url(javascript:null);' 
                s+=' position:absolute;">';
***************
*** 400,404 ****
  };
  DynLayer.prototype.setBgColor=function(color) {
!       if (color==null && !is.ns4) color='transparent';
        this.bgColor=color;
        if (this.css==null) return;
--- 401,408 ----
  };
  DynLayer.prototype.setBgColor=function(color) {
!       if (color==null) {
!               if (is.ns4) color=null  
!               else color='transparent'
!       }
        this.bgColor=color;
        if (this.css==null) return;
***************
*** 438,443 ****
  };
  DynLayer.prototype.setSize = function(w,h,noevt) {
!       this.setWidth(w,false);
!       this.setHeight(h,false);
        if (noevt!=false) this.invokeEvent('resize');
  };
--- 442,447 ----
  };
  DynLayer.prototype.setSize = function(w,h,noevt) {
!       if (w!=null) this.setWidth(w,false)
!       if (h!=null) this.setHeight(h,false)
        if (noevt!=false) this.invokeEvent('resize');
  };
***************
*** 487,497 ****
  };
  DynLayer.prototype.setClip=function(clip) {
!     var cc=this.getClip();
!     for (var i in clip) if (clip[i]==null) clip[i]=cc[i];
!     this.clip=clip;
!       if (this.css==null) return;
!     var c=this.css.clip;
!     if (is.ns4) c.top=clip[0], c.right=clip[1], c.bottom=clip[2], c.left=clip[3];
!     else if (is.ie || is.ns6) this.css.clip="rect("+clip[0]+"px "+clip[1]+"px 
"+clip[2]+"px "+clip[3]+"px)";
  };
  DynLayer.prototype.getClip=function() {
--- 491,501 ----
  };
  DynLayer.prototype.setClip=function(clip) {
!       var cc=this.getClip();
!       for (var i in clip) if (clip[i]==null) clip[i]=cc[i];
!       this.clip=clip;
!       if (this.css==null) return;
!       var c=this.css.clip;
!       if (is.ns4) c.top=clip[0], c.right=clip[1], c.bottom=clip[2], c.left=clip[3];
!       else if (is.ie || is.ns6) this.css.clip="rect("+clip[0]+"px "+clip[1]+"px 
"+clip[2]+"px "+clip[3]+"px)";
  };
  DynLayer.prototype.getClip=function() {


_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to