查询数据库,如果有是张三的名称的就弹出个层
是弹出一个层,并不是显示。像弹出窗口一样弹出?

解决方案 »

  1.   

    div弹出层,Jquery弹出层,网上可以去搜下一大堆。
      

  2.   

    js弹出div层 百度一下 一堆一堆的
      

  3.   

    OnClientClick="show('div1')"  
      function show(obj)   
      {
      var range = getRange();
      $('div2').style.width = range.width + "px";
      $('div2').style.height = range.height + "px";
      $('div2').style.display = "block";
      document.getElementById(obj).style.display="";
        
      }
      function getRange()   
      {
      var top= document.body.scrollTop;
      var left= document.body.scrollLeft;
      var heigh = document.body.clientHeight;
      var width = document.body.clientWidth;
      if (top==0 && left==0 && height==0 && width==0)  
      {
      top = document.documentElement.scrollTop;
      left= document.documentElement.scrollLeft;
      height= document.documentElement.clientHeight;
      width = document.documentElement.clientWidth;
      }
      return {top:top ,left:left ,height:height ,width:width } ;
      }  
      

  4.   

    OnClientClick="show('div1')"   
      function show(obj)   
      {
      var range = getRange();
      $('div2').style.width = range.width + "px";
      $('div2').style.height = range.height + "px";
      $('div2').style.display = "block";
      document.getElementById(obj).style.display="";
        
      }
      function getRange()   
      {
      var top= document.body.scrollTop;
      var left= document.body.scrollLeft;
      var heigh = document.body.clientHeight;
      var width = document.body.clientWidth;
      if (top==0 && left==0 && height==0 && width==0)   
      {
      top = document.documentElement.scrollTop;
      left= document.documentElement.scrollLeft;
      height= document.documentElement.clientHeight;
      width = document.documentElement.clientWidth;
      }
      return {top:top ,left:left ,height:height ,width:width } ;
      }   
    就是这样的啊,今天刚接触的
      

  5.   

    有第三方控件的好像是叫做POPOP的一个控件。。导入到你的项目里...,然后只是修改一个属性就OK了...效果类似MSN来消息的样子....,要是下不到的话可以M我,我这有的
    祝你成功!
      

  6.   

    C# 提取数据 js 判断并弹出个层搞定。
      

  7.   

    www.codeplex.com
    ->
    ExtAspNet
    AjaxToolKit