Re: OnMouseOver
by Brian <brianj(at)ais.ais-gwd.com>
|
Date: |
Sat, 07 Mar 1998 23:48:53 -0500 |
To: |
Tom Grenier <tom(at)sqlman.com>, tdesign(at)mtcnet.net |
References: |
net mtcnet |
|
todo: View
Thread,
Original
|
|
Tom Grenier wrote:
-------------------
>Place this in the <HEAD> section - adjust SMLogo stuff to your 2 images:
>
><SCRIPT language="JavaScript">
><!--
>// browser test:
>agent = navigator.userAgent
>browserVer = 2
>if ((agent.indexOf("a/3",6) == -1) && (agent.indexOf("a/4",6) == -1))
> {browserVer = 2}
>else {browserVer = 1}
>
>// preload universal images:
>
>if (browserVer == 1) {
-------------------
You don't need the above junk. Just add:
if(document.images){
for the browser detection. Saves you a lot of typing, indeed.
b.
brian j. | [i.c.q. 1057986] fusion(at)greenwood.net
f r e e l a n c e graphic designer/web developer
fusion design <<http://www.ais-gwd.com/~fusion>>
"No, it's not done yet. Feb 21. I know, I know."
HWG: hwg-graphics mailing list archives,
maintained by Webmasters @ IWA