View Full Version : Conveyor Belt Slideshow lost alt. text

07-02-2011, 04:22 AM
1) Script Title: Conveyor Belt slideshow script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamic...rightslide.htm

3) The alt text suddenly decided to not show up on mouse over.

4) here it is--> http//www.clareco.net

Any help would be appreciated, and I am always willing to learn...


07-02-2011, 04:34 AM
Although IE sometimes will do it, the alt attribute is not supposed to show up on mouseover. Use the title attribute for that.

07-04-2011, 03:20 AM
Hi John,
Thank you very much for the response. First, I need to know where the title attribute, that you suggested, goes--and what is the code for it.

I have been experimenting and it appears to be some conflict with something else in the page because when I look at just the conveyor belt as a separate webpage, and not in an iframe, all is well.
everything works.
But when it is in an iframe I loose the mouse over text:

weird, because it was working a week ago.

Anyway, I sure appreciate the help, and I still want to know about title attributes. =;-)

always wanting to learn,

07-04-2011, 05:39 PM
It's the standard title attribute:

<img title="Frostbite Winterfest" src="slide_StHelensWoodCarvers111Chamber.jpg" border="2" alt="Frostbite Winterfest" >

So you could do, for example (scroll the code block to see it):

leftrightslide[0]='<a href="http://www.clareco.net/special_events/frostbite/2011_fb.htm" target="_parent"><img title="Frostbite Winterfest" src="slide_StHelensWoodCarvers111Chamber.jpg" border="2" alt="Frostbite Winterfest" ></a>'

To repeat, alt is not for "showing up". Sometimes it does in IE. Apparently not in an iframe (it's actually more complex than that*). What alt is for is when there's a problem with the image. Then the broken image token is shown, along with the alt text if any.

Use title for this. Keep the alt too though, it will help you if any image ever is missing - to track it down as to which one it is.

*It will in an iframe in IE less than 9, and in IE 9 if both pages are in quirks mode. But if the top page is in standards mode (your current one is), in IE 9 it will not. No other browser will do it in any mode on any page inside or out of an iframe. In any case, the standard attribute for this is title. Use it and you will be OK in any browser, including all IE in any mode.

07-04-2011, 06:25 PM
Very Cool!
I put in the title=" " attribute and it worked like a charm. Wonderful. I have always wanted to know the true purpose of the alt attribute. Your explanation helped a lot.

All is well with the Clare County, Michigan homepage now:

Thank you!