This is a discussion on "OnMouseOver" within the JavaScript Forum section. This forum, and the thread "OnMouseOver are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
OnMouseOver
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
OnMouseOver
hey, I want to be able to change text to an image when the user puts thier mouse over it, is this possible without using another image instead of text?? Anyone know how?
|
|
|
|
|||
|
There's a couple ways to do it, one would be to use the onmouseover event on a div containing the text, then use .innerHTML to change the contents of the div to an image, and back again for the mouseout.
|
|
|||
|
ok
could you give me a sample code possibly?? I'm still a bit confused.
|
|
|||
|
This is about a medium complex way to do it.
This goes in the HEAD:
|
|
|||
|
Thanks!
Thanks a TON.. now that I see it its coming back to me.. works GREAT!
|
![]() |
| Tags |
| onmouseover |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| popup div onmouseover | pesho318i | JavaScript Forum | 2 | Dec 28th, 2007 13:30 |
| onmouseover not working in ff | dab42pat | JavaScript Forum | 4 | Nov 30th, 2007 14:10 |
| onMouseOver <div> pops up next to mouse pointer - HOW? | Love2Java | JavaScript Forum | 17 | Aug 1st, 2007 19:42 |
| onMouseOver Help | Bighen | JavaScript Forum | 3 | Jan 24th, 2006 20:17 |
| OnMouseOver Action | Monie | JavaScript Forum | 10 | Dec 30th, 2004 10:19 |