The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Layers

I once found a cut and paste java script that displayed a clock in a browser that changed without being in a form text box. It used div's and layers and I can't remember how do it now. I don't need it for a clock now. I need it to display different text when mouseOver different images.

Ditto to that; that's how I learned, even though his tutorials (I think) are a bit outdated now

Actually, I've already updated the introductory one to make it NN6 compliant and have begun adding new ones, so I no longer have to send people to www.pageresource.com and Ryan's dHTML tutorial (aDog's pseudonym

I was messing around with the DOM a while back and ran accross a tutorial on inserting text into a DIV using the DOM's insertTextNode method. I think this is what you are looking for. I don't recall where the tutorial was located, but I do still have the code I wrote while experimenting. It should not be a problem to alter it to do what you want:

I knew it wasn't cut and paste, I was trying to mess around with document.layers[divID].document.write(txt); but it wasn't liking it, I was prolly making a mistake. I also wouldn't have thought to put the if's in for other browsers... man I hate having to do that. Ne wayz, what you wrote looks like what I'm trying to do so I'll give it a go.