|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Image Rollover problem
I had the following linein my code
PHP Code:
Except I need it to conform to XHTML 1.1 so I changed the code to make the name attribute an id attribute but now I get the following JavaScript error 'DOcument.home' is null ornot an object. ANy help is fixing this would be greatly appreciated
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#2
|
||||
|
||||
|
Have you just tried "home.src='foo'"
|
|
#3
|
||||
|
||||
|
I tried and I get the same error.
Quote:
|
|
#4
|
||||
|
||||
|
I just tried it and it works fine - remember that JS is CASE sensitive. So your ID value must be the same as what you use in the onmouse events.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Image Rollover problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|