[thelist] Nice interface needs a little .js help.

Stuart Young syoung at unitec.ac.nz
Wed May 19 02:25:30 CDT 2004

I using a mouse-on, mouse-off, swapout javascript to run
the interface navigation.  The problem I am running into is that I need
swap out two windows instead of one.  I believe I need an "else
in my javascript, but, need assistance.

Here's a cute two images swopping at once rollover I did in 1997 (so
excuse the terrible fonts)

this worked by placing two swop lines of code into the same {  } where
normally there is only one.

function imgOn(imgName) {
              if (document.images) {
                  document["coffee"].src = eval(imgName + "_cad.src");
                  document["paper"].src = eval(imgName + "_pad.src");

function imgOff(imgName) {
              if (document.images) {
                  document["coffee"].src =
                  document["paper"].src =


Dr Stuart Young,       +64 (0)9-815 4321 Ex 8656
<syoung at unitec.ac.nz>     
Lecturer, School of Computing and Information Technology,
Unitec New Zealand, Auckland, New Zealand
I would provide a URL for my official staffpage, but its too long and

More information about the thelist mailing list