负边距的应用

HTML:

<tr>
    <td class="PX15 widthTD1 textRight heightFirst" valign="top"><div class="paddingTop12">机器尺寸:</div></td>
    <td class="PX15 widthTD2 heightFirst">
        <ul class="widthTD2" id="chooseServer">
            <li>
                <div class="activeServer" onclick="tabServer(this);">1U服务器</div>
            </li>
            <li>
                <div class="defaultServer" onclick="tabServer(this);">2U服务器</div>
            </li>
            <li>
                <div class="defaultServer" onclick="tabServer(this);">4U服务器</div>
            </li>
        </ul>
    </td>
</tr>

“负边距的应用”继续阅读

jQuery AJAX 遮罩实例

function transferip()
{
    var site_list=$("textarea[name='Oldsite']").val();
    var ip_list=$("textarea[name='Oldip']").val();
    var ip_new=$("input[name='Newip']").val();
    if(ip_list==""||ip_new=="")
    {
        alert('IT CANNOT BE EMPTY!');
        return false;
    }
    ajaxStar("LOADING...");
    $.ajax(
    {
        type:"post",
        url:"transip.mazey",
        data:{"search":"check_ip","ip_list":escape(ip_list),"ip_new":ip_new,"site_list":escape(site_list)},
        error:function(){
            ajaxClose();
            alert("SYSTEM ERROR!");
        },
        success:function(msg)
        {
            ajaxClose();
            var msgArr=msg.split("-|-")
            if(msgArr[0]=="413")
            {
                alert(msgArr[1]);
            }
            else
            {
                alert(msgArr[1]);
            }

        }
    }
    )
}

/**div加载ajax效果***/
function ajaxStar(str,e){//str提示信息  e:iframe框访
    var html="";
    html+="<div id='ajaxLoadDiv'></div>";
    html+="<div class='ajaxLoadIcon'>";
    html+= "<span class='ajaxIcon'></span>";
    if(str)
        html+="<span class='ajaxInfo'>"+str+"</span>";
    html+="</div>";
    $("body").append(html);    
    var divH=$(document).height();//-$("#admin_topbj").height();
    $("#ajaxLoadDiv").css({"height":divH,"top":0,"opacity":0.5});
    var iconTop=$(window).height()/2;
    iconTop=iconTop+$(document).scrollTop();
    $(".ajaxLoadIcon").css({"top":iconTop+"px"});
}

/****关闭ajax遮罩*****/
function ajaxClose(){    
    $("#ajaxLoadDiv").remove();
    $(".ajaxLoadIcon").remove();    
}

function look_seven(){
    window.location.href="/Setinmanager/winhost/migratejob/record.asp";
}

“jQuery AJAX 遮罩实例”继续阅读