Jump to content

Archived

This topic is now archived and is closed to further replies.

scs

mouse over

Recommended Posts

How do you call a mouse over on a td or div with out putting the onmouseover in the tag?
Thanks!

Share this post


Link to post
Share on other sites
ummm...you can't? unless all you wanted to do was change like a background color or something then you can do it with css but you'd still have to put like id='blah' or class='blah' inside it, to call the css...

Share this post


Link to post
Share on other sites
Some of them have id and the others have class. (I know that) But it's not just a background color change. It's background color fade in-out. So do you know how I can do that with out putting the onmouseover? I think I've seen it some where. ???

Share this post


Link to post
Share on other sites
What is it that you are trying to do exactly, and why do you not want to use onmouseover?

Share this post


Link to post
Share on other sites
Well I have some javascript code that can fade in-out the background color of a table or div. Well I want some code for that can take the place of onmouseover in tanles and divs. Something like this:

document.div.onMouseOver = "";

Or something like that. I'm sure I saw it somewhere a long time ago.
Thanks

Share this post


Link to post
Share on other sites
You'll need to use the attachEvent for IE and addEventListener for FireFox. Check this page out for more details

[a href=\"http://www.captain.at/howto-addeventlistener-attachevent-parameters.php\" target=\"_blank\"]http://www.captain.at/howto-addeventlisten...-parameters.php[/a]

You still need ids for your divs

Share this post


Link to post
Share on other sites
Thanks alot! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.