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

Q1113 How do you keep a mouse over image on when that page is loaded in another frame?

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

Q1113 How do you keep a mouse over image on when that page is loaded in another frame?

In home.htm:

<body onLoad="if (document.images) { top.leftframe.images["home"].src = 'home.gif'; top.leftframe.images["order"].src = 'blank.gif'">

In order.htm

<body onLoad="if (document.images) { top.leftframe.images["home"].src = 'blank.gif'; top.leftframe.images["order"].src = 'order.gif'">

The script can be taken out of the body and put in a function by itself, but this is the way to do it.

This is covered in greater detail in the article Toolbar Images.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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