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

Q1151 How can I load an image in a hidden frame, and then if it loads replace a blank image in the displayed frame?

irt.org | Knowledge Base | JavaScript | Frame | Q1151 [ previous next ]

Q1151 How can I load an image in a hidden frame, and then if it loads replace a blank image in the displayed frame?

Try:

In the hidden frame:

<script language="JavaScript"><!--
function verify(ImageFileName) {
    parent.display.document.image['ShowImageHere'].src = ImageFileName;
}
//--></script>

<img src="display.gif" onLoad="verify(this.src)">

In the display frame

<img src="blank.gif" name="ShowImageHere">

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.