Image fade javascript does not work

I’m trying to create a simple “fade out” on an image for our website. Since I am new to javascript, I found a snippet on the web. I pasted it into Notepad and ran it…and it works great! However when I use it in Notes either as pass-thru HTML or by placing the script in the JS header I get this error:

Error: ‘b’ is undefined

Here is the script:


Fade

test

The whole idea is to fade out the top image (in a layer) so the next layer is revealed. And, like I mentioned…it works wonderfully using Notepad…

—> Any ideas why I am getting this error: “b” undefined?

Lori

Subject: Image fade javascript does not work

I haven’t tested the Javascript, but don’t you mean that the error is “c” undefined? There’s no “b” anywhere in your code. I’ll also bet that the reason it fails in Domino and not in an external HTML file is because of the HTML form that your Domino page will have in it by default (view source to see what I mean). You need to either get rid of / close off the form or code the Javascript work with it.