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

Warbasse Design - Info info at warbassedesign.com
Wed May 19 07:38:54 CDT 2004


Dr. Young,

Thanks a million.  The interface works well now.  Your idea was helpful.  I
have made some adjustments and all works well.

Best,
Philip Warbasse

----- Original Message -----
From: "Stuart Young" <syoung at unitec.ac.nz>
To: <thelist at lists.evolt.org>
Sent: Wednesday, May 19, 2004 12:25 AM
Subject: Re: [thelist] Nice interface needs a little .js help.


> --------------------------
> I using a mouse-on, mouse-off, swapout javascript to run
> the interface navigation.  The problem I am running into is that I need
> to
> swap out two windows instead of one.  I believe I need an "else
> statement"
> 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)
> http://easyweb.easynet.co.uk/~stuey/recycle.htm
>
> 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 =
> "images/recycle/clear_cad.gif";
>                   document["paper"].src =
> "images/recycle/clear_pad.gif";
>               }
>       }
>
>
> cheers
>
> 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
> http://hyperdisc.unitec.ac.nz/staff/syoung.htm
> I would provide a URL for my official staffpage, but its too long and
> complex
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list