开发者

Mouseover style for a button in a form

开发者 https://www.devze.com 2022-12-27 03:14 出处:网络
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

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

精彩评论

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

关注公众号