The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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!

    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed