SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist mumford1's Avatar
    Join Date
    Sep 2002
    Location
    UK
    Posts
    573
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Refrencing TD's with javascript

    is there a way of referencing a table cell with javascript

    my problem is i want a td cell to change colour and stay on that colour when a user clicks on that item to take them to another page.

    heres what it does at the moment
    <td height="33" align="center" onMouseOver="this.bgColor = '#0066FF'" onMouseOut="this.bgColor = 'transparent'"><a href="map.htm" target="mainFrame" class="navlinks">School<br>Search</a></td>

    can you have onClick="this.bgcolor=''

    thanks for any help

  2. #2
    SitePoint Evangelist mumford1's Avatar
    Join Date
    Sep 2002
    Location
    UK
    Posts
    573
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry here is the example http://www.boarding.org.uk/index2.htm


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
  •