| | |
How to change ONLY the color of text on MouseOver/Out?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
This is what happens:
I have an input submit button.
On mouse over text is changed from RED to WHITE.
On mouse out text is changed from WHITE to RED.
Simple eh?
Well IE does it fine but FF makes everything change to RED border, etc.
Any Ideas?
Thanks, Regards X
I have an input submit button.
On mouse over text is changed from RED to WHITE.
On mouse out text is changed from WHITE to RED.
Simple eh?
Well IE does it fine but FF makes everything change to RED border, etc.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
jscript: function over(button) { button.style.color = "#FFFFFF"; } function out(button) { button.style.color = "#FF0000"; } my input button: <input onMouseOver="over(this)" onMouseOut="out(this)" class="input" type="submit" id="input" name="input">
Any Ideas?
Thanks, Regards X
Last edited by OmniX; Apr 18th, 2008 at 4:42 am.
Can you post that snipped of code so other can re-use it if they find themselfs in same situation?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Well there is nothing about posting code as such as its more of a function.
I just used the 'hover' function in css to do the same thing(which was alot more friendlier).
Hover was never working for me before in FF and I think since the updates it does.
So the code would be in css:
That good enough or should more detail be included?
Thanks, Regards X
I just used the 'hover' function in css to do the same thing(which was alot more friendlier).
Hover was never working for me before in FF and I think since the updates it does.
So the code would be in css:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
.class:hover { styles }
That good enough or should more detail be included?
Thanks, Regards X
Last edited by OmniX; Apr 19th, 2008 at 2:00 pm.
![]() |
Similar Threads
- javascript css background-image (JavaScript / DHTML / AJAX)
- Please check my code below (Java)
- java image animation not working???? (Java)
- To underline links or not to underline links (Site Layout and Usability)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Random image with text and link
- Next Thread: if statement not working
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captchaformproblem checkbox child class close codes date debugger dependent developer disablefirebug dom editor element embed engine events explorer ext file firefox flash form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming rated redirect runtime safari scriptlets scroll search security session shopping size software solutions star stars stretch synchronous toggle tweet unicode variables web webkit webservice window wysiwyg \n






