By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

3 image flip on same time

P: 1
Hi I have a little problem, i need a javascript that can change 3 images at the same time.

That is i have an image , that has to change ven i hold my mouse over it + 2 other images has to change at the same time.

If you have a javascript that can do that i wood be very great full.

Valdimar
Sep 6 '06 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
For example:
Expand|Select|Wrap|Line Numbers
  1. function change3Images(img1ID,img2ID,img3ID) {
  2.     document.getElementById(img1ID).src = srcOfNewImage;
  3.     document.getElementById(img2ID).src = srcOfNewImage2;
  4.     document.getElementById(img3ID).src = srcOfNewImage3;
  5. }
Call this onmouseover with the IDs of all three images.
May 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.