umekille78 Posted November 23, 2006 Share Posted November 23, 2006 Hi!Is it possible to change 2 pictures on one "oneMouseOver"?? onMouseOver="document.images[0].src='A.jpg';"onMouseOver="document.images[1].src='B.jpg';" I thought of using a function: function SecA(){ document.images[0].src="A.jpg"; document.images[1].src="B.jpg";}onMouseOver="SecA();" But I dont get that to work. Does anyone have some ideas that can help me?/Per Link to comment Share on other sites More sharing options...
umekille78 Posted November 24, 2006 Author Share Posted November 24, 2006 This is kind of important to me. Im trying to help a hockey organisation with there home page.Im helping them for free ofcourse so I dont have that much time to spend on this task as it interferes with my ordenary jobb.PLEASE PLEASE HELP ME!!! Link to comment Share on other sites More sharing options...
aalbetski Posted November 24, 2006 Share Posted November 24, 2006 you had just about everything<img src="images/dir_277.gif" id="i1" onmouseover="SecA()"/><img src="images/dir_835.gif" id="i2" onmouseover="SecA()"/><script>function SecA(){ document.images[0].src="images/dir_997.gif"; document.images[1].src="images/dir_837.gif";}</script> Link to comment Share on other sites More sharing options...
umekille78 Posted November 24, 2006 Author Share Posted November 24, 2006 Thank you aalbetskiYou solved the problem Link to comment Share on other sites More sharing options...
midnite Posted November 27, 2006 Share Posted November 27, 2006 =.= ... try to think deeper try more before asking, you will gain and progress Thank you aalbetskiYou solved the problem Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now