From: Bart B. <ba...@cs...> - 2003-04-07 09:15:59
|
I am using version 2.9. I tried using the set border function but it gives an error. It says the property or method is not supported. I have pasted the code in below, perhaps I am trying to call it wrong or something? (the variable anImage is of a custom type I have written so just ignore that). I also tried to access the CSS element but it has a value of null! Bart. function BBImageGalViewer(x, y, w, h, anIamge){ //initialising class variables this.dynlayer=DynLayer; this.dynlayer(null, x, y, w, h, "#ffffee"); this.image = anIamge; //a layer for the content this.theHTML = ""; this.theHTML += "<p align=\"center\"><img src=\"" + this.image.url + "\" alt=\"Testing\" /></p>"; this.theHTML += "<p align=\"center\">" + this.image.caption + "</p>"; this.setHTML(this.theHTML); this.setBorder(1, "#8080ff"); return this; } BBImageGalViewer.prototype=new DynLayer(); _________________________________ Mr. Bart Busschots, BSc, AMInstP, Department of Computer Science, NUI Maynooth. Web: www.cs.may.ie/~bart E-mail: ba...@cs... -----Original Message----- From: Doug Melvin [mailto:do...@cr...] Sent: 07 April 2003 07:07 To: Bart Busschots; dyn...@li... Subject: Re: [Dynapi-Help] Accessing the CSS of a DynLayer Which versino of DynAPI are you using? version 2.9 (aka 3.x) has a function setBorder(width,color) Otherwise the css object is DynLayer.css ----- Original Message ----- From: "Bart Busschots" <ba...@cs...> To: <dyn...@li...> Sent: Sunday, April 06, 2003 1:06 PM Subject: [Dynapi-Help] Accessing the CSS of a DynLayer > Hi, > > Is it possible to access the CSS properties of a DynLayer? If so how? All I > want to do is put a border around a Layer but I cannot seem to find any way > of doing this. > > Bart. > > _________________________________ > Mr. Bart Busschots, BSc, AMInstP, > Department of Computer Science, > NUI Maynooth. > Web: www.cs.may.ie/~bart > E-mail: ba...@cs... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.463 / Virus Database: 262 - Release Date: 3/17/2003 |