Grow your CSS skills. Land your dream job.

different background images from mouseovers

  • # July 1, 2013 at 9:29 pm

    Hi everyone, I’d like to do this in CSS if its possible, I’ve fiddled and gotten nothing but brain dead. Think of a vertical list of 5 links with an overall default background image. What I want is for that overall background image to change to the n’th one of 5 other background images, when mousing over the n’th link….
    I tried this for example:

    .

    But nothing happens.

    Suggestions welcome!

    xxx
    # July 1, 2013 at 9:33 pm

    Oops – my html is not visible – newby here.
    the TD is … onmouseover=”document.getElementById(‘myTable’).style.backgroundImage =’url(images/notesoftheweek.jpg)'”> .. with the a href stuff following

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".