Results 1 to 5 of 5

Thread: Conveyor Belt Slideshow lost alt. text

  1. #1
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Conveyor Belt Slideshow lost alt. text

    Hello,
    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...

    Sheryl

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Although IE sometimes will do it, the alt attribute is not supposed to show up on mouseover. Use the title attribute for that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.
    http://www.clareco.net/slideline/slider.htm
    everything works.
    But when it is in an iframe I loose the mouse over text:
    http://www.clareco.net/

    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,
    Sheryl

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It's the standard title attribute:

    Code:
    <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):

    Code:
    	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.
    Last edited by jscheuer1; 07-04-2011 at 05:48 PM. Reason: detail
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:
    http://www.clareco.net/

    Thank you!
    Sheryl

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •