Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q630 How can I change 2 (or more) images in another frame using onMouseOver over 2 (or more) different areas of text?

irt.org | Knowledge Base | JavaScript | Image | Q630 [ previous next ]

Q630 How can I change 2 (or more) images in another frame using onMouseOver over 2 (or more) different areas of text?

Try:

<SCRIPT LANGUAGE="JavaScript"><!--
function over() {
    if (document.images) {
        parent.otherFrameName.images['imageName1'].src = 'picture1on.gif';
        parent.otherFrameName.images['imageName2'].src = 'picture2on.gif';
    }
}

function out() {
    if (document.images) {
        parent.otherFrameName.images['imageName1'].src = 'picture1off.gif';
        parent.otherFrameName.images['imageName2'].src = 'picture2off.gif';
    }
}
//--></SCRIPT>

<A HREF="#" onMouseOver="over()" onMouseOut="out()">text 1</A>
<A HREF="#" onMouseOver="over()" onMouseOut="out()">text 2</A>

Feedback on 'Q630 How can I change 2 (or more) images in another frame using onMouseOver over 2 (or more) different areas of text?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.