Do we have to still use the <layer> tags?  I have been researching how
to set the background image of the layer and either have it repeat or
not.  I don't think there is a way to set it in the <layer> tag wether
the background image is repeating or not, it is just by default
repeating.  So I am thinking of this:
-have a variable this.bgImageRepeat=false by default
-for getOuterHTML() :
if (is.def) {
  DynLayer.prototype.getOuterHTML=function() {
        ...
    if (this.bgImage!=null) {
      s+=' background-image:url('+this.bgImage+');';
      if (this.bgImageRepeat) s+=' background-repeat:repeat;';
      else s+=' background-repeat:no-repeat;';
    }
        ...
  };
}else if (is.ns4) {
  DynLayer.prototype.getOuterHTML=function() {
    var s='\n<layer id="'+this.id+'"';
        ...

    if (this.bgImage!=null && this.bgImageRepeat) 
        s+=' background="'+this.bgImage+'"';
 
        ...
   s+='>';
   if(this.bgImage!=null && !this.bgImageRepeat)
        s+='<img src="'+this.bgImage+'">';
       if (this.html!=null) s+=this.html;
    for (var i=0; i<this.children.length; i++)
        s+=this.children[i].getOuterHTML();
    s+='</layer>';
    return s;
  };
};


What does anyone think?
Should I just make the changes, test them, and put them right into the
cvs?

Matt


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to