resumeprivacy.js

来自「仿招聘网站 SSH框架 ajax功能」· JavaScript 代码 · 共 37 行

JS
37
字号
document.domain = "chinahr.com";
function ShowAndCloseIframe(cvid,IsSave)
{
	obj = document.getElementById("divCv");
	obj1 = document.getElementById("ifrCv");
	if(obj.style.display == 'none')
	{
		obj1.src='../jobapply/SetDefaultCv.aspx?DefaultCv='+cvid+'&IsSave='+IsSave+'&r='+rnd();
		obj.style.display = '';
		document.body.style.overflow = 'hidden';
		document.body.style.height = document.documentElement.clientHeight + 'px';
	}
	else
	{
		obj.style.display = 'none'
		document.body.style.overflow = '';
		obj1.src="";
	}
}
function rnd()
{
	rnd.today=new Date();
	rnd.seed=rnd.today.getTime();
	rnd.seed=(rnd.seed*9301+49297)%233280;
	return rnd.seed/(233280.0);
}
function OpenPrivacyDlg(rid,title,openlevel,openlang,cnenable,enenable,acceptdir,parenturl)
{
    //window.open() ;
    var res = window.showModalDialog('PrivacyDlg.aspx?rid='+rid+'&openlevel='+openlevel+'&openlang='+openlang+'&title='+title+'&cnenable='+cnenable+'&enenable='+enenable+'&acceptdir='+acceptdir,title,'dialogWidth:570px;dialogHeight:500px;status:no;center:yes;scroll:no') ;
    //var res = window.open('PrivacyDlg.aspx?rid='+rid+'&openlevel='+openlevel+'&openlang='+openlang,title,'dialogWidth:570px;dialogHeight:400px;status:no;center:yes;scroll:no') ;
    //alert("res=="+res) ;
    if(res=='true')
    {
        window.location.href = parenturl;//'MyResumeMain.aspx' ;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?