【ligerTip】鼠标滑动显示层提示

来源:互联网 发布:js input 失去焦点 编辑:程序博客网 时间:2024/05/16 17:30

当前用户:<aid="UserBaseInfo"href="#" onclick="javascript:f_addTab('ModifyMyInfo','操作员信息修改','@Url.Content("~/Account/ModifyMyInfo")')"style="color:white;text-decoration:none;"title="@ViewBag.OperatorName">@ViewBag.OperatorName</a>

 

 

$(function (){

$("#UserBaseInfo").ligerTip({

content: $("#UBI").html(),

callback: null,

auto: true,

removeTitle: true

});

});

 

<divstyle="display:none;"id="UBI">

    @{

       System.Data.DataTable dt = (System.Data.DataTable)ViewBag.OperatorInfo;

       if (dt.Rows.Count == 1)

        {

       <imgsrc='@if (!string.IsNullOrEmpty(dt.Rows[0]["img"].ToString()))

                  {@Url.Content(dt.Rows[0]["img"].ToString());

                 }

                  else

                  {@Url.Content("~/Content/Images/defaultUser.png");

                  }' style="width:75px;height:75px;"/>

        <p>姓名:@Html.Raw(dt.Rows[0]["Name"].ToString())</p>

        <p>编号:@Html.Raw(dt.Rows[0]["Id"].ToString())</p>

        <p>部门:@Html.Raw(dt.Rows[0]["DepartmentName"].ToString())</p>

        <p>职位:@Html.Raw(dt.Rows[0]["PositionTitle"].ToString())</p>

       <hr/>

        <p>注:点击进入基本信息设置界面。</p>      

        }   

    }

</div>

原创粉丝点击