SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Mar 2002
    Location
    Los Angeles
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onMouseOver in CSS?

    hey, i was going through someones source code and i found this:

    <td style="Cursor:Hand" onClick="window.location.href='showthread.php?threadid=143325'"
    onMouseOver="this.style.backgroundColor='#222222';" onMouseOut="this.style.backgroundColor='#333333';"

    bgcolor="#333333" align="left" width="70%">

    are those mouse events CSS? I didnt know you could do that
    From here on, it's instinctual...even straight roads meander.

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ehhh...
    The css part of the attributes in your example ends after style="Cursor:Hand"
    The other things are javascript events that changes background colour etc

    And: Yes, you can change properties for an object (e.g. the style) with javascript

  3. #3
    SitePoint Addict
    Join Date
    Mar 2002
    Location
    Los Angeles
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah, ok, thats javascript. thats pretty cool though.
    From here on, it's instinctual...even straight roads meander.


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
  •