This discussion is closed.
roseonthegrave
Badges:
#1
Report 16 years ago
#1
Hey,

Need some html code to change one image to another when the mouse cursor is hovered over the inital image.
can anyone help?
0
elpaw
Badges: 15
Rep:
?
#2
Report 16 years ago
#2
(Original post by roseonthegrave)
Hey,

Need some html code to change one image to another when the mouse cursor is hovered over the inital image.
can anyone help?
use the javascript onmouseover function

<IMG src="1.jpg" onmouseover="this.src='2.jpg'" onmouseout="this.src='1.jpg'"> where 1 and 2 are the addresses to your images.
0
roseonthegrave
Badges:
#3
Report 16 years ago
#3
(Original post by elpaw)
use the javascript onmouseover function

<IMG src="1.jpg" onmouseover="this.src='2.jpg'" onmouseout="this.src='1.jpg'"> where 1 and 2 are the addresses to your images.
Cheers!
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

People at uni: do initiations (like heavy drinking) put you off joining sports societies?

Yes (541)
66.46%
No (273)
33.54%

Watched Threads

View All