Results 1 to 4 of 4

Thread: Highlight Table Cells Script

  1. #1
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Highlight Table Cells Script

    I have a question about the script located here: http://www.dynamicdrive.com/dynamici...lighttable.htm

    Is there a way to use an image for the rollover effect instead of plain colors?

    I tried experimenting a little, but I had no luck.
    I would like one background image to be shown by default, then when you mouse over the cell of a table, it will change the background image to a different image untill you mouse out.

    Any help would be highly appreciated.

    Regards,

    TrueFangz

  2. #2
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Anyone

    Anyone....

    Anyone....

    Beuller?

    I still haven't figured this oune out yet. Can anyone help?

    Thanx!

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Change this line:
    Code:
    source.style.backgroundColor=highlightcolor
    To this:
    Code:
    source.style.backgroundImage='url(' + highlightcolor + ')';
    Then, pass the URL of the image instead of the colour.

    As an aside... no offence intended here, DD, but some of these scripts could do with a rewrite. Also, unpleasant things happen if the mouse moves out of the browser window without exiting the cell first, in FX1.5.0.4.
    Last edited by Twey; 07-05-2006 at 07:20 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Thanx

    Cool, Thank you very much, It worked!!!

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
  •