SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Hide alt

  1. #1
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hide alt

    If you give an image an alt attribute (as you should!) is there any way of having it not displaying on mouseover?

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, according to the spec, browsers actually shouldn't display alts as "tooltips", but only as an alternative if the image cannot be loaded/displayed. in phoenix, you actually have to download an extension to re-enable this faulty behaviour in the browser (see http://texturizer.net/phoenix/faq.html#4.8 )
    but, to answer your question...you may try adding an empty TITLE attribute (although that would probably be bad in terms of accessibility, as it counteracts the ALT)...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That worked, thanks

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Alternatively you could have used the null alt empty string, for example: alt="" which would be suitable for various images that format a page.


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
  •