scs Posted June 5, 2006 Share Posted June 5, 2006 How do you call a mouse over on a td or div with out putting the onmouseover in the tag? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/ Share on other sites More sharing options...
.josh Posted June 5, 2006 Share Posted June 5, 2006 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... Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/#findComment-41944 Share on other sites More sharing options...
scs Posted June 5, 2006 Author Share Posted June 5, 2006 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. ??? Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/#findComment-41952 Share on other sites More sharing options...
king arthur Posted June 5, 2006 Share Posted June 5, 2006 What is it that you are trying to do exactly, and why do you not want to use onmouseover? Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/#findComment-42008 Share on other sites More sharing options...
scs Posted June 5, 2006 Author Share Posted June 5, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/#findComment-42058 Share on other sites More sharing options...
nogray Posted June 5, 2006 Share Posted June 5, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/#findComment-42087 Share on other sites More sharing options...
scs Posted June 5, 2006 Author Share Posted June 5, 2006 Thanks alot! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/11205-mouse-over/#findComment-42211 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.