Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: OnMouseOver..

  1. #1
    Member tim2788's Avatar
    Join Date
    Aug 2003
    Location
    North East England, UK
    Posts
    34
    Member #
    2909
    When you mouseover a table cell I want the background colour of the cell to change. Is this possible? If so how do I do it?

    Cheers, Tim
    ----------------------------------------
    http://www.timothymerchant.co.uk

  2.  

  3. #2
    Senior Member cbor's Avatar
    Join Date
    Jun 2003
    Posts
    283
    Member #
    1825
    Yes it is possible in CSS and here is the code and i hope it helps

    <td onmouseover="this.style.backgroundColor='#FFFFFF'; " onmouseout="this.style.backgroundColor='#000000';" >
    Well ive used it before so i know it works
    regards,
    robc

  4. #3
    Member tim2788's Avatar
    Join Date
    Aug 2003
    Location
    North East England, UK
    Posts
    34
    Member #
    2909
    Excellent. Thanks for your help

    Tim
    ----------------------------------------
    http://www.timothymerchant.co.uk

  5. #4
    Member Tinah's Avatar
    Join Date
    Oct 2003
    Location
    Croatia/England
    Posts
    72
    Member #
    3656
    i know this is an old thread but bumping it because im wondering what the syntax would be to get the cell to go back to being transparent afterwards?

    oh and also - how do i get the Alpha filter into the onmouseover one? Im confused, the code seems to be a mixtued of html and css :ermm:

  6. #5
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    Try backgroundColor="".

    They sometimes are.

    <img src="http://www.something.com/name.gif" style="width:15;height:15;filter:alpha(opacity=40) " /onmouseover="
    this.filters.alpha.opacity=100" /onmouseout="
    this.filters.alpha.opacity=40">
    S. Rosland


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:26 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com