首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

请教一下学校弹框有什么好的控件

2013-07-20 
请问一下学校弹框有什么好的控件?需要做一个选择学校的控件,效果和人人网一样。不知道有没有好的的控件可以

请问一下学校弹框有什么好的控件?
     需要做一个选择学校的控件,效果和人人网一样。不知道有没有好的的控件可以实现这个效果。 JS?????弹框控件
[解决办法]

引用:
     需要做一个选择学校的控件,效果和人人网一样。不知道有没有好的的控件可以实现这个效果。

自己手动去写一个 模拟弹窗的js
[解决办法]
lingerui  ,easyui ,extjs,ldialog..........
[解决办法]
<html>
<head>
<script>
//打开用js弹出难忘的事
function regist(){
   var msgw,msgh,bordercolor; 
   msgw=550;//Width
   msgh=400;//Height 
   titleheight=25 //title Height;
   bordercolor="#336699";//boder color
   titlecolor="#99CCFF";//title color
   var sWidth,sHeight; 
   sWidth=document.body.offsetWidth; 
   sHeight=screen.height; 
   var bgObj=document.createElement("div"); 
   bgObj.setAttribute('id','bgDiv'); 
   bgObj.style.position="absolute"; 
   bgObj.style.top="0"; 
   bgObj.style.background="#777"; 
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75"; 
   bgObj.style.opacity="0.6"; 
   bgObj.style.left="0"; 
   bgObj.style.width=sWidth + "px"; 
   bgObj.style.height=sHeight + "px"; 
   bgObj.style.zIndex = "10000"; 
   document.body.appendChild(bgObj); 
   document.body.style.overflow="hidden";
   var msgObj=document.createElement("div"); 
   msgObj.setAttribute("id","msgDiv"); 
   msgObj.setAttribute("align","center"); 
   msgObj.style.background="white"; 
   msgObj.style.border="1px solid " + bordercolor; 
   msgObj.style.position = "absolute"; 
   msgObj.style.left = "50%"; 


   msgObj.style.top = "30%"; 
   msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif"; 
   msgObj.style.marginLeft = "-225px" ; 
   msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px"; 
   msgObj.style.width = msgw + "px"; 
   msgObj.style.height =msgh + "px"; 
   msgObj.style.textAlign = "center"; 
   msgObj.style.lineHeight ="25px"; 
   msgObj.style.zIndex = "10001"; 
   var title=document.createElement("h4"); 
   title.setAttribute("id","msgTitle"); 
   title.setAttribute("align","right"); 
   title.style.margin="0"; 
   title.style.padding="14px"; 
   title.style.background="url(images/login_05.gif)"; 
   title.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);"; 
   title.style.opacity="0.75"; 
   title.style.border="1px solid " + bordercolor; 
   title.style.height="18px"; 
   title.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif"; 
   title.style.color="white"; 
   title.style.cursor="pointer"; 
   title.innerHTML="<img src='images/close_03.gif' alt='0'>"; 
   title.onclick=function(){ 
          document.body.removeChild(bgObj); 
          document.getElementById("msgDiv").removeChild(title); 
          document.body.removeChild(msgObj); 
          document.body.style.overflow="auto";
        }
   document.body.appendChild(msgObj); 
   document.getElementById("msgDiv").appendChild(title); 
   var txt=document.createElement("p"); 
   txt.style.margin="1em 0";
   txt.setAttribute("id","msgTxt"); 
   txt.style.margintop="10px";
   txt.innerHTML="<from action='' method='' id='' name=''><table align='center'><tr algin='right'><td rowspan='2'><h3>邮箱地址:<h3></td><td><input type='text' id='' name=''/></td></tr><tr><td>请输入常用的邮箱地址!</td></tr><tr algin='right'><td rowspan='2'><h3>密码:</h3></td><td><input type='password' id='' name=''/></td></tr><tr><td>请输入6-16个字母、数字、下划线!</td></tr><tr><td rowspan='2'><h3>密码确认:</h3></td><td><input type='password' id='' name=''/></td></tr><tr><td>请再次输入密码!</td></tr><tr><td rowspan='2'><h3>验证码:</h3></td><td><input type='text' id='' name=''/></td></tr><tr><td>请输入验证码!</td></tr><tr><td colspan='2'><input type='submit' id='' name='' value='提交'></td></tr></table></from>"; 


   document.getElementById("msgDiv").appendChild(txt); 
}
</script>
<body>
 <div id="Layer26"><a href="javascript:" onclick="regist()">注册</a>
[解决办法]
</div>
</body>

这是弹层注册页,自己运行看看,修改一下就可以啦

热点排行