3 image flip on same time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Valdimar
    New Member
    • Sep 2006
    • 1

    3 image flip on same time

    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
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    For example:
    [code=javascript]function change3Images(i mg1ID,img2ID,im g3ID) {
    document.getEle mentById(img1ID ).src = srcOfNewImage;
    document.getEle mentById(img2ID ).src = srcOfNewImage2;
    document.getEle mentById(img3ID ).src = srcOfNewImage3;
    }[/code]Call this onmouseover with the IDs of all three images.

    Comment

    Working...