SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict Corobori's Avatar
    Join Date
    Jun 2003
    Location
    Concepcion, Chile
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Click checkbox and highlight line

    I have seen in Hotmail that when you click a checkbox it changes the background colour of the line.

    I would like to do the same. Any reference I could use to start from ?
    Jean-Luc
    Corobori WebDesign
    Working in the Concepcion area, Chile, since 1999
    Follow us on Twitter

  2. #2
    SitePoint Addict
    Join Date
    Mar 2002
    Posts
    327
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use CSS (Cascading Style Sheets) with two classes controlling whether the text background is highlighted or normal. These are then swapped using Javascript in response to the check box event. Take a look at the source of my site here

    http://members.aol.com/nickjc67

    which uses mouseover swaps to give you a starting point. Good luck.

    Nick
    All4YourPC for all your PC needs. Custom software.
    Websites. Web marketing. Training.
    http://members.aol.com/nickjc67

  3. #3
    SitePoint Addict Corobori's Avatar
    Join Date
    Jun 2003
    Location
    Concepcion, Chile
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made some progress but it's not quite what I want. Here is the page: http://www.mejoresdatos.cl/a.htm

    Clicking on the checkbox it should change the complete line background not only the current cell.

    Any clue would be welcome !

  4. #4
    SitePoint Addict Corobori's Avatar
    Join Date
    Jun 2003
    Location
    Concepcion, Chile
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •