From: Richard :o <ma...@ri...> - 2000-12-15 03:10:33
|
Hi, I agree the percentage of people browsing dhtml with pictures turned off will be minimal, but if we disregard them, we might as well disregard NS6 (0.025%) & Opera(0.050%) (source: http://www.thecounter.com ) And of course you can have those irritating little labels pop up to tell you which picture you're looking at. But it's quite simple to add the function to your version of dynimage.js: Close to line 45 there is a set html, this you change to: this.setHTML('<img alt="'+this.alt+'"name="'+this.id+'Image" src="'+imgObject.src+'" width='+this.w+' height='+this.h+' border=0>') then you add the setAlt function at the end of the file: DynImage.prototype.setAlt = function (myAlt) { this.alt=myAlt } Now you can set the alt value like this: myImg = new DynImage(); myImg.moveTo(50,150); myImg.setSize(160,160); myImg.setImageSrc('../js/lib/dynapi/images/common/arrowright.gif'); myImg.setAlt('If you were at home you would see a picture here.') DynAPI.document.addChild(myImg); Cheers, Richard :o ----- Original Message ----- From: "Doug Melvin" <do...@cr...> To: <dyn...@li...> Sent: Friday, December 15, 2000 5:38 AM Subject: Re: [Dynapi-Help] alt tag of DynImage? > not true. > I myself somethime turn off images entirelywhen I'm only looking for info, > not images.. > Of course this is when I am at my sister's and using her 56k > At home I got cable. :-) > Doug Melvin > ----- Original Message ----- > From: "Dan Steinman" <dy...@fu...> > To: <dyn...@li...> > Sent: Thursday, December 14, 2000 10:20 PM > Subject: Re: [Dynapi-Help] alt tag of DynImage? > > > > There's not much reason to, nobody using non-dhtml programs will be able > to see them. And if you want so that people can read what it is before it's > loaded it's probably better to do a spash screen of some sort. > > > > Dan > > > > On Thu, Dec 14, 2000 at 03:32:18PM -0800, John Sturgeon wrote: > > > Is there a way to set the alt tag of a dynimage? > > > > > > -- > > > John Sturgeon <>< > > > joh...@Se... <mailto:joh...@Se...> > > > http://www.senareider.com/ > > > > > > > > > _______________________________________________ > > > Dynapi-Help mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > > |