From: Nuno F. <nun...@wi...> - 2000-12-16 01:58:32
|
Slick code Richard :) Anyway, remember guys that if you've got a shitload of graphics to download (even if each one of them is small), and the DynAPI is still loading, it's nice to let the user see something while stuff is being built on the background. I know, I know, that's what splash screen are there for, but it can be useful if for whatever reason you don't want to use a Splash screen... best, NunoF -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Richard :o Sent: quinta-feira, 14 de Dezembro de 2000 3:11 To: dyn...@li... Subject: Re: [Dynapi-Help] alt tag of DynImage? 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 > > |