改变颜色 [英] Changing the Color
问题描述
当我将鼠标悬停在他们身上时,我想要改变颜色的一些元素
然后他们将鼠标移开。
我想要保留的颜色为#c7d0e0当用户点击
时。
< td style =" cursor:hand;"
onMouseOver = " this.style.background =''#c7d0e0'';"
onMouseOut =" this.style.background =''#ffffff'';"
onClick =" chg_the_color();">
说明
< / td>
任何帮助表示赞赏。
" mike"写了
我希望保留的颜色为#c7d0e0。当用户点击它们时。
< td style =" cursor:hand;"
onMouseOver =" this.style.background =''#c7d0e0 '';"
onMouseOut =" this.style.background =''#ffffff'';"
onClick =" chg_the_color();">
说明
< / td>
尝试:
onclick =" this.onmouseout = null;"
hth
-
Ivo
mike于2005年2月28日在comp.lang.javascript :
我有一些元素,当我将鼠标悬停在它们上面时我想要改变颜色
。
我希望保留的颜色为#c7d0e0。当用户点击它们时。
< td style =" cursor:hand;"
onMouseOver =" this.style.background =''#c7d0e0 '';"
onMouseOut =" this.style.background =''#ffffff'';"
onClick =" chg_the_color();">
说明
< / td>
任何帮助表示赞赏。
< td
style =" cursor:hand; background-color:#ffffff;"
onMouseOver ="
this.save =''#ffffff'';
this.style.backgroundColor =''#c7d0e0''"
onMouseOut =" this.style.backgroundColor = this.save"
onClick =" this.save =''#c7d0e0''">
说明
< / td>
-
Evertjan。
荷兰。
(用我的电子邮件地址替换所有带点的十字架)
如何重新打开?
I have some elements that I want to change color when I mouse over them
and them back on mouse off.
I''d like the color to remain with "#c7d0e0" when the user clicks on
them.
<td style="cursor:hand;"
onMouseOver="this.style.background=''#c7d0e0'';"
onMouseOut="this.style.background=''#ffffff'';"
onClick="chg_the_color();">
Description
</td>
Any help is appreciated.
解决方案"mike" wrote
I''d like the color to remain with "#c7d0e0" when the user clicks on
them.
<td style="cursor:hand;"
onMouseOver="this.style.background=''#c7d0e0'';"
onMouseOut="this.style.background=''#ffffff'';"
onClick="chg_the_color();">
Description
</td>
Try:
onclick="this.onmouseout=null;"
hth
--
Ivo
mike wrote on 28 feb 2005 in comp.lang.javascript:
I have some elements that I want to change color when I mouse over them
and them back on mouse off.
I''d like the color to remain with "#c7d0e0" when the user clicks on
them.
<td style="cursor:hand;"
onMouseOver="this.style.background=''#c7d0e0'';"
onMouseOut="this.style.background=''#ffffff'';"
onClick="chg_the_color();">
Description
</td>
Any help is appreciated.
<td
style="cursor:hand;background-color:#ffffff;"
onMouseOver="
this.save=''#ffffff'';
this.style.backgroundColor=''#c7d0e0''"
onMouseOut="this.style.backgroundColor=this.save"
onClick="this.save=''#c7d0e0''">
Description
</td>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
How do I turn that back on?
这篇关于改变颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!