Looks like I'm not able to upload the files.. but here is the code I am trying to modify.
Create a File Named OldSchoolCookieDialogPopUp.html
Code below
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>OldSchoolPopUp Convert to DNN Modal PopUp</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- HOW WOULD I MODIFY THE CONDITION STATEMENT BELOW TO INITIATE THE DNN MODAL CALL ON PAGE LOAD
if (document.cookie.indexOf("MYCUSTOMCookie") < 0) {window.open('MyHTMLFILE.html','Ad','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=320,height=250');}
// -->
<!-- Begin
var expDays = 1; // number of days the cookie should last
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var MYCUSTOMCookie = GetCookie('MYCUSTOMCookie')
if(MYCUSTOMCookie == null) {
SetCookie('MYCUSTOMCookie','1')
return 1
}
else {
var newMYCUSTOMCookie = parseInt(MYCUSTOMCookie) + 1;
DeleteCookie('MYCUSTOMCookie')
SetCookie('MYCUSTOMCookie',newMYCUSTOMCookie,exp)
return MYCUSTOMCookie
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function checkMYCUSTOMCookie() {
//alert('test');
//return;
var MYCUSTOMCookie = GetCookie('MYCUSTOMCookie');
if (MYCUSTOMCookie == null) {
MYCUSTOMCookie=1;
SetCookie('MYCUSTOMCookie', MYCUSTOMCookie, exp);
//window.open(page, "", windowprops);
//}
//else {
MYCUSTOMCookie++;
SetCookie('MYCUSTOMCookie', MYCUSTOMCookie, exp);
}
}
// End -->
//----------------------
</SCRIPT>
</head>
<body>
EXAMPLE of traditional onload POPUP that would like to see as a DNN MODAL using DNN's Native Modal PopUp in DNN 6.X -7.X
</body>
</html>
Next File Titled HyHTMLFILE.html
<html>
<head>
<title>MyHTMLFILE.html</title>
<script>
//FUNCTIONS----------------------------------------------
function PopupClose(){
//Cookie
//if(document.frmAlpha.dontshow.checked){checkMYCUSTOMCookie()};
//Window
window.close();
};
//----------------------
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><p><font size="2" face="arial" color="#000000"> Popup Disclaimer </font></td>
</tr>
<tr>
<td>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
<form name="frmAlpha">
<input type="checkbox" name="dontshow" value="yes" onClick="if(this.checked && !window.opener.closed){window.opener.checkMYCUSTOMCookie()}">
 - Don't Show This Again.
<input type="button" name="OK" value=" OK " onClick={PopupClose();}>
</form>
</td>
</tr>
</table>
</body>
</html>