Jump to content


Photo

mouse over


  • Please log in to reply
6 replies to this topic

#1 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 05 June 2006 - 01:50 AM

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


#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 05 June 2006 - 04:19 AM

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...
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 05 June 2006 - 05:12 AM

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. ???

#4 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 05 June 2006 - 01:23 PM

What is it that you are trying to do exactly, and why do you not want to use onmouseover?
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.

#5 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 05 June 2006 - 03:43 PM

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

#6 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 05 June 2006 - 05:35 PM

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

NoGray.com


#7 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 05 June 2006 - 10:27 PM

Thanks alot! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users