You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB
JavaScript

document.write ('<script language="javascript" type="text/javascript" src="/js/jquery.boxy.js"></script>');
var allDialogs = [];
var seq = 0;
var bottomclose = '<div class="boxy_bottom"><a onclick="Boxy.get(this).hide(); return false" class="close">CLOSE X</a></div>';
function iframe(url,w,h)
{
return '<iframe id="Dialog-iframe" frameborder="0" src="'+url+'" style="width: '+w+'px; height: '+h+'px;"></iframe>';
}
function CreateBoxy(tit,cnt,options)
{
options = $.extend({title: tit}, options || {});
var dialog = new Boxy(cnt, options);
allDialogs.push(dialog);
return false;
}
function ShowIFrame(title,url,w,h,closeplace)
{
var options;
var cnt = iframe(url,w,h);
if(closeplace=='top')
{
options = {fixed: false,modal: true}
}
else if(closeplace=='bottom')
{
options = {fixed: false,modal: true,closeable: false}
cnt = cnt + bottomclose;
}
else
{
options = {fixed: false,modal: true,closeable: false}
}
return CreateBoxy(title,cnt,options);
}
//打开发送邮件窗口
function ShowSendMail()
{
return ShowIFrame('','/forms/sendmail.aspx',610,510,'bottom');
}
//onclick='return create({fixed: false,modal: true,closeable: false});'