Asp.net源码专业站
首页->企业网站->某医院网站管理后台源码>>admin/js/window.js>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:某医院网站管理后台源码
当前文件:文件类型 HospitalAdmin/admin/js/window.js[2K,2009-6-12 11:44:20]打开代码结构图
普通视图
		            
1function sAlert(str,typeid){ 2if(typeid==0) 3{ 4 str="选项标题:<input id=\"ChooseID\" type=\"text\">&nbsp;&nbsp;&nbsp;<input type=\"button\" onclick=\"AddChoose();\" value=\"添加选项\"><br><b><font color=red id=\"msg1\"></font></b>"; 5 6} 7var msgw,msgh,bordercolor; 8msgw=400;//提示窗口的宽度 9msgh=100;//提示窗口的高度 10titleheight=25; //提示窗口标题高度 11bordercolor="#336699";//提示窗口的边框颜色 12titlecolor="#99CCFF";//提示窗口的标题颜色 13var sWidth,sHeight; 14sWidth=document.body.offsetWidth; 15sHeight=screen.height; 16var bgObj=document.createElement("div"); 17bgObj.setAttribute('id','bgDiv'); 18bgObj.style.position="absolute"; 19bgObj.style.top="0"; 20bgObj.style.background="#777"; 21bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75"; 22bgObj.style.opacity="0.6"; 23bgObj.style.left="0"; 24bgObj.style.width=sWidth + "px"; 25bgObj.style.height=sHeight + "px"; 26bgObj.style.zIndex = "10000"; 27document.body.appendChild(bgObj); 28var msgObj=document.createElement("div") 29msgObj.setAttribute("id","msgDiv"); 30msgObj.setAttribute("align","center"); 31msgObj.style.background="white"; 32msgObj.style.border="1px solid " + bordercolor; 33msgObj.style.position = "absolute"; 34msgObj.style.left = "50%"; 35msgObj.style.top = "50%"; 36msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif"; 37msgObj.style.marginLeft = "-225px" ; 38msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px"; 39msgObj.style.width = msgw + "px"; 40msgObj.style.height =msgh + "px"; 41msgObj.style.textAlign = "center"; 42msgObj.style.lineHeight = (msgh-titleheight) + "px"; 43msgObj.style.zIndex = "10001"; 44var title=document.createElement("h4"); 45title.setAttribute("id","msgTitle"); 46title.setAttribute("align","right"); 47title.style.margin="0"; 48title.style.padding="3px"; 49title.style.background=bordercolor; 50title.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);"; 51title.style.opacity="0.75"; 52title.style.border="1px solid " + bordercolor; 53title.style.height="18px"; 54title.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif"; 55title.style.color="white"; 56title.style.cursor="pointer"; 57title.innerHTML="关闭"; 58title.onclick=function(){ 59document.body.removeChild(bgObj); 60document.getElementById("msgDiv").removeChild(title); 61document.body.removeChild(msgObj); 62} 63document.body.appendChild(msgObj); 64document.getElementById("msgDiv").appendChild(title); 65var txt=document.createElement("p"); 66txt.style.margin="1em 0" 67txt.setAttribute("id","msgTxt"); 68txt.innerHTML=str; 69document.getElementById("msgDiv").appendChild(txt); 70}
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:某医院网站管理后台源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146