function fnSecurityRemindClose(){ document.getElementById('remind').style.display = 'none'; $.getJSON("/announce/security/remind/security_remind.php",{security_remind_close:1}, function(re){} ); } function makeRemindMsgbox(opt){ var o = opt.target; var css = opt.css; var htmlText = opt.htmlText; var title = opt.title; var content = opt.content; var showBtnId = opt.showBtnId; var closeBtnName = opt.closeBtnName; var d = document; var element = d.createElement('div'); o.appendChild(element); element.style.cssText = css; element.innerHTML = htmlText; if(element.offsetWidth > o.offsetWidth){ element.style.width = o.offsetWidth+'px'; } var msgbox = d.createElement('div'); o.appendChild(msgbox); msgbox.style.cssText = 'display:none;position:absolute;z-index:1000;left:499px;top:400px;visibility:visible;width:600px;'; msgbox.innerHTML = '
 愛情公寓關心您
 
 
'+title+'

'+content+'
 
'; var closeBtn = d.getElementsByName(closeBtnName); for(var i=0;i r.offsetWidth){ rChild.style.width = r.offsetWidth+'px'; }