JavaScript Index pageHome


JAVASCRIPT  Image Windows

This is a JavaScript page. If you are not equipped with Netscape 3.0, it's features will not work. Unfortunately, Microsoft Internet Explorer 3.0, although it does read JavaScript, does not read images on pages generated "on the fly" by JavaScript.

To see the JavaScipt for this page, select the "View Document Source" option in the Navigator menu.

The JavaScript on this page opens a new window when the thumbnail images are clicked to display the image full size. When all browsers are fully JavaScript capable, it might be a nice solution to the traditional method of opening a full separate page with the full-size image on it. Unfortunately, JavaScript does not have code for positioning a new small open window. Hence you may need to drag the windows up a little by their top green window bar. And you can exit the image window either by clicking the X button on the window bar or by clicking the "Close Window" button in the body of the image page.

I have noticed some little bugs about this method:

1. If you do not give the window a distinct name and you do not set the "resizable" parameter to the window and then click on the resize or minimize button on the window bar after the image and caption have loaded, the JavaScript Demonstration Page text replaces the image and caption. If you set "resizable" to 1 (true or yes), the same happens. If you set it to 0 (false or no), the image and caption will stay in the window while you minimize, but if you move or minimize the image window and click the thumbnail a second time, the Demonstration Page text again loads in the image window.

2. If you give the image window a distinct name, it no longer loads the Demonstration Page text, but has trouble at times distinguishing between the various image windows and will sometimes perversely load one that you previously opened and closed rather than the one you are currently working with. Perhaps this is simply a bug in JavaScript (that it has trouble distinguishing between multiple windows that are created on the fly off of one page). This problem obviously cannot be solved by giving the windows distinct URLs, since then the Browser looks for actually existing pages and throws up an error.

Why this all happens, I don't know. Does anyone have a fix for these problems? If one could somehow suppress the minimize and resize buttons on the window menu so that the only option is to close the window, that might solve the problem, but I don't know how to do this (yet?).

Microsoft Internet Explorer

Internet Explorer 3.0 has apparently not caught up with Netscape Navigator 3.0. It will open the window for you, but it is unable to display the image. I tried the usual Netscape fix of supplying image width and height, but even this only made the "broken image" frame larger. So I guess JavaScript is not yet at a stage where it is useful for image work, atleast until all the major browsers have caught up with Netscape 3.0.


Click on the thumbnail images below to view them larger-size in a floating window.

If the image and
Claire Chêne, Ocean, 1995
oil on canvas and wood panels
48" x 88" overall (3 panels)
If the image and
Claire Chêne, New Forrest, 1995
acrylic on canvas
60" x 60"

| Books Edited | Writing | Web Design | Programming | Links |

Home Home Home

E-mail Pete the answers to all his questions.