Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Image | Q1113 [ previous next ]

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.

©2018 Martin Webb