Click to See Complete Forum and Search --> : Looking for a script to handle text rollover event


robsta117
08-12-2003, 07:59 PM
Hi -

I'm looking for a script that will allow me do text rollover in a secondary location on the page in response to a text MouseOver event.

Anyone know of a source for something like this?

All suggestions/comments welcome.

Thanks -
Robsta
:)

xataku_nakusute
08-12-2003, 11:18 PM
you can do some short-hand javascript like so:

<div onmouseover="document.div2.style.color='red'" onmouseout="document.div2.style.color='black'">Mouse Over Me!</div>
<p>
<div name="div2">Hey Look! I Change!</div>

that should do it.
tell me if you got any other questions or if you need help on embedding that into your code.

-xnoxios

robsta117
08-13-2003, 12:48 AM
Hello!

Thanks for your speedy reply and the code. You've been very helpful.

It's late and I'm heading to bed... so I'll try to figure out how to embed your code when I get a chance tomorrow. I'll let you know how it works out.

Again, thank you!

All the best -
Robsta
:)

Capone
08-13-2003, 11:18 AM
Doesn't work for me. Some trick to embedding it?

pyro
08-13-2003, 11:24 AM
No, just a few errors with the script. Try this one:

<div onmouseover="document.getElementById('div2').style.color='red'" onmouseout="document.getElementById('div2').style.color='black'">Mouse Over Me!</div>
<div id="div2">Hey Look! I Change!</div>

Capone
08-13-2003, 11:33 AM
Thnk you, Pyro. That works.

pyro
08-13-2003, 11:36 AM
You bet... :)

robsta117
08-13-2003, 02:32 PM
Thanks guys for the code update.

Pyro - your site looks great. The duo tone Flash header with hi-rise & the polygons is subtle and atmospheric and sets the tone of the page. I hope you get a lot of work!

- Robsta
:)

pyro
08-14-2003, 11:07 PM
Thanks, mate. It's always very nice to hear when people appreciate my work. Cheers! :)