username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//按钮
; RoadUI.Button = function ()
{
    var instance = this;
    this.init = function ($buttons)
    {
        if (!$buttons || $buttons.size() == 0)
        {
            return false;
        }
        $buttons.addClass("button1").bind("mouseover", function ()
        {
            $(this).removeClass().addClass("button2");
        }).bind("mouseout", function ()
        {
            $(this).removeClass().addClass("button1");
        });
        $buttons.each(function ()
        {
            if ($(this).prop("disabled"))
            {
                $(this).unbind("mouseout").unbind("mouseover").removeClass().addClass("buttondisabled");
            }
        });
    };
 
}