Results 1 to 2 of 2

Thread: Change table background on mouseover?

  1. #1
    Join Date
    Jan 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Change table background on mouseover?

    1) Script Title: Tabs Menu (mouseover):

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...bmouseover.htm

    3) Describe problem: I am using the Tabs Menu (mouseover) in a html table. I have a background image assigned as table background, that matches the Tabs menu text. Is there some way to make the Tabs Menu change the table background on mouseover?

    I want a different background images used for every menu headline. Is that posible?

  2. #2
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default

    The simplest and all cross-browser working approach is CSS. This works even when the user has javascript turned off, and its fast. See this thread: http://www.dynamicdrive.com/forums/a...p/t-13216.html

    Note that because of the MANY IE6 rendering problems, there will always be some flicker on mouseover change because a new request for the image is made to the server every time a mouseover occurs unless the element's properties are:

    1) the background- color is set to 'transparent',
    2) the background-repeat is set as 'repeat', and
    3) the background-position is not defined,

    and also the image size area (width x height) is greater than 2500 pixels.

    Hope this helps.

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
  •