How can i do with an Images ....

How can i do this?
I put an image on my page and i want, when the user move the mouse over, to change to another.

My english is horrible!!  sorry
Thank for your help
ale2000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

messentaryCommented:
Place this within the head tags of the HTML:

<!--

function change(picture) {
document.theimg.src = picture
}
function change2(picture) {
document.theimg2.src = picture
}
function change3(picture) {
document.theimg3.src = picture
}
function change4(picture) {
document.theimg4.src = picture
}
function change5(picture) {
document.theimg5.src = picture
}  
//-->
</script>


Now place this where your image is.  I'm giving you code that will activate a hyperlink:

<a href="url.htm" onMouseOver="change('pic1.jpg')" onMouseOut="change('pic2.jpg')"><img SRC="pic2.jpg" NAME="theimg" BORDER="0" HSPACE="0" WIDTH="85" HEIGHT="26"></a>

<a href="url2.htm" onMouseOver="change2('pic3.jpg')" onMouseOut="change2('pic4.jpg')"><img SRC="pic4.jpg" NAME="theimg" BORDER="0" HSPACE="0" WIDTH="85" HEIGHT="26"></a>

<a href="url3.htm" onMouseOver="change3('pic5.jpg')" onMouseOut="change3('pic6.jpg')"><img SRC="pic6.jpg" NAME="theimg" BORDER="0" HSPACE="0" WIDTH="85" HEIGHT="26"></a>

<a href="url4.htm" onMouseOver="change4('pic7.jpg')" onMouseOut="change4('pic8.jpg')"><img SRC="pic8.jpg" NAME="theimg" BORDER="0" HSPACE="0" WIDTH="85" HEIGHT="26"></a>

<a href="url5.htm" onMouseOver="change5('pic9.jpg')" onMouseOut="change5('pic10.jpg')"><img SRC="pic10.jpg" NAME="theimg" BORDER="0" HSPACE="0" WIDTH="85" HEIGHT="26"></a>



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kodiakbearCommented:
Fixed the -1 problem on this question.
Escrow points corrected.

kb
Community Support Moderator
Experts Exchange
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.