/    Sign up×
Community /Pin to ProfileBookmark

Looking for a script to handle text rollover event

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
?

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@xataku_nakusuteAug 13.2003 — 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
Copy linkTweet thisAlerts:
@robsta117authorAug 13.2003 — 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

?
Copy linkTweet thisAlerts:
@CaponeAug 13.2003 — Doesn't work for me. Some trick to embedding it?
Copy linkTweet thisAlerts:
@pyroAug 13.2003 — No, just a few errors with the script. Try this one:

&lt;div onmouseover="document.getElementById('div2').style.color='red'" onmouseout="document.getElementById('div2').style.color='black'"&gt;Mouse Over Me!&lt;/div&gt;
&lt;div id="div2"&gt;Hey Look! I Change!&lt;/div&gt;
Copy linkTweet thisAlerts:
@CaponeAug 13.2003 — Thnk you, Pyro. That works.
Copy linkTweet thisAlerts:
@pyroAug 13.2003 — You bet... ?
Copy linkTweet thisAlerts:
@robsta117authorAug 13.2003 — 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

    ?
  • Copy linkTweet thisAlerts:
    @pyroAug 15.2003 — Thanks, mate. It's always very nice to hear when people appreciate my work. Cheers! ?
    ×

    Success!

    Help @robsta117 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...