AJAX无边框提示
<script type="text/javas function MDown(Object){ function MMove(){ function MUp(){ massage_box.style.left = (document.body.clientWidth - w) / 2; massage_box.style.top = (screen.height - h) / 2-80; massage_box.style.screenx = (document.body.clientWidth - w) / 2;//仅适用于Netscape massage_box.style.screeny = (screen.height - h) / 2-80;//仅适用于Netscape massage_box.style.width = w+"px"; massage_box.style.height = h+"px"; pop_title.innerHTML=tit; massage_box.style.display='' var popiframe='<iframe src="'+url+'" width="'+(w-11)+'px" height="'+(h-36)+'px" frameborder=0 scrolling=no></iframe>'; pop_iframe.innerHTML=popiframe;}function closeWithIframe(){ massage_box.style.display="none"; document.body.removeChild(document.getElementById("bgDiv"));}document.write('<div id="massage_box" style="position:absolute; FILTER: progid:DXImageTransform.Microsoft.DropShadow();z-index:10001;display:none">');document.write('<div style="border-width:1 1 3 1; width:100%; height:100%; background:#fff; color:#57A01B; font-size:12px; line-height:150%">');document.write('<div onmousedown=MDown(massage_box) style="background:#57A01B; height:20px; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:12px;color:#fff;cursor:move;padding:0 0 4px 0">');document.write('<div style="display:inline; width:200px; position:absolute;padding:3px 0 0 5px" id=pop_title></div>');document.write('<span onClick="closeWithIframe()" style="float:right; display:inline; cursor:hand;padding:3px 5px 0 0;font-size:12px">关闭</span>');document.write('</div>');document.write('<div style="padding:5px" id=pop_iframe></div>');document.write('</div>');document.write('</div>');</script>调用方法:<a href=# onClick="openWithIframe('ajax提示框','www.programlife.cn',300,200);">ajax提示框</a> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 搜索 – 如何在Xcode中找到Objective-C函数的用法?
- ruby-on-rails-3 – 无法将HashWithIndifferentAccess转换为
- ruby-on-rails-3.1 – 在capistrano部署之前在开发机器上进
- UML中关联(Association)和依赖(Dependency)的区别
- ruby-on-rails – 控制器对延迟作业的操作
- 使用xml文件创建虚拟机
- 采用React+Ant Design组件化开发前端界面(一)
- c# – 如何在Visual Studio中给一个.ico图像?
- ruby-on-rails – 无法推送到heroku – sqlite3.h丢失了
- 如何不使用ctrl-d退出swift repl?