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.