how do i write a function that uses getElementById to change the picture in that image to something new (picture2.jpg). then second function that changes the picture in that image back to the first picture (picture1.jpg).How do i then modify the image on the page so that when you run your mouse over it?
Am i at least headed in the right direction?
function getpic var pic = ("picture2.jpg) { if onmouseover(picture2.jpg)
else if onmouseout (picture1.jpg) }
Here's an example of how this could be done:
If you need explanation, let me know. I hope this helps!