Is it possible to make an image invisible to the mouse, but visible to the eye

Discussion in 'HTML & Website Design' started by darch, Feb 14, 2008.

  1. #1
    Hi

    Is it possible to make an image invisible to the mouse, but visible to the eye?

    I was wondering if it is possible to overlay a semi transparent image over the top of some text, but still have the text beneath able to be selected and clickable?

    Here is an example demonstrating what I would like to achieve:

    http://www.supercolossal.ch/test.html

    Is this at all possible?

    Thanks, for any help,

    Marcus
     
    darch, Feb 14, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No. You might be able to trick it though, with absolute positioning. It would be kindof a nightmare, and you need to hope that the transparent images are never viewed in IE6... (which doesn't show transparency but a grey box).

    This would only work for a small area, but you'd have your text, and text showing the link you would like clicked.

    Then you make another (same) link with the semi-transparent as the background... this link needs to be set to display: block so you can set dimensions... set the height and width equal to what the link underneath is. Absolutely position the link-with-background-image directly on top of the old text.

    There might be some major issues with usability doing this, and I'd expect IE6 (even with PNGfix) to have a fit about it (you can get links to not click in IE6 because of PNGfix).

    I've done something on a page I'm working on... I moved some images to the background that, on the old website, are clickable. So I absolutely positioned a link over where the image, set to the same size as the image, and now-- background image is clickable! If that image had been semi-transparent, you would've seen the body background behind it... however, I could not have stuck text behind that, so instead you need to put your image on the link.
     
    Stomme poes, Feb 14, 2008 IP