开发者

Mouseover style for a button in a form

Can anyone tell me how to add mouse over style on 开发者_C百科a button in a form? I have given my form code. Pls help me

<input type="button" value="Tab1" name="tab1" class="activeTab" onClick="
    blur();
    showIt(1);
    hideIt(2);
    hideIt(3);
    this.className = 'activeTab';
    this.form.tab2.className = 'inactiveTab';
    this.form.tab3.className = 'inactiveTab'" />

(Editors note: no line breaks in original version)


add and customize the following in your css

.activeTab:hover {background-color: Green;}


See onmouseover Event

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜