SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2003
    Location
    India
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing Background Pic on mouse over

    How do I change the background picture of a table cell when the mouse is brought over it?

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    in NS you can use css
    Code:
    td:hover {background-image:url(img.gif) }
    but with IE you'll need js
    Code:
    onmouseover="this.style='background-image:url(img.gif)'"
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


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
  •