Post by Aaron on Apr 26, 2005 23:45:10 GMT
Member of the Month - PopUp
[ Cross Browser ]
Preview: Here
Main Footer:
<script type="text/javascript">
<!--
/*
Member of the Month PopUp
Created by Naruto
hatakeforum.proboards30.com/index.cgi
*/
// This is the height and width of your pop-up
var iHeight = "300";
var iWidth = "180";
// This is the MotM's Name and Profile URL
var iMotM = "Display Name";
var iMotMUrl = "/index.cgi?action=viewprofile&username=USERNAME_HERE";
// A description under the MotM's name
var iMotMDesc = "This user has displayed great support towards the forums. Congratulations on earning Member of the Month!";
// No editting necessary, below this point
function popOpen() {
var iStyle1 = document.getElementsByTagName("style")[0].innerHTML;
var iStyle2 = document.getElementsByTagName("style")[1].innerHTML;
var iStyle = "<style type=\"text/css\">" + iStyle1 + iStyle2 + "\n</style>";
var iData = "<html>\n" +
"<head>\n" +
"<title>Member of the Month</title>\n" +
"" + iStyle + "\n" +
"</head>\n" +
"<body>\n" +
"<br />\n" +
"<div align=\"center\">\n" +
"<table width=\"90%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"bordercolor\">\n" +
"<tr>\n" +
"<td>\n" +
"<table width=\"100%\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\">\n" +
"<tr>\n" +
"<td class=\"titlebg\" align=\"center\"><font class=\"titletext\"><b>Member of the Month</b></font></td>\n" +
"</tr>\n" +
"<tr>\n" +
"<td class=\"windowbg\"><font size=\"1\"><br /><center><a href=\"" + iMotMUrl + "\" target=\"_blank\">" + iMotM + "</a></center><br />" + iMotMDesc + "</font></td>\n" +
"</tr>\n" +
"</table>\n" +
"</td>\n" +
"</tr>\n" +
"</table>\n" +
"</div>\n" +
"</body>\n" +
"</html>";
window.open("","","width=" + iWidth + ",height=" + iHeight + ",top=80,left=300,scrollbars=yes,resizable=no").document.write(iData);
}
var td = document.getElementsByTagName("td");
for(t=0;t<td.length;t++) {
if(td[t].width=="40%" && td[t].align=="left" && td[t].vAlign=="top" && td[t].innerHTML.match(/Total Members: /i)) {
td[t].innerHTML += "<br />";
td[t].innerHTML += "<font size=\"1\">View the <a href=\"javascript:popOpen();\">Member of the Month</a></font>.";
}
}
//-->
</script>
[ Cross Browser ]
Preview: Here
Main Footer:
<script type="text/javascript">
<!--
/*
Member of the Month PopUp
Created by Naruto
hatakeforum.proboards30.com/index.cgi
*/
// This is the height and width of your pop-up
var iHeight = "300";
var iWidth = "180";
// This is the MotM's Name and Profile URL
var iMotM = "Display Name";
var iMotMUrl = "/index.cgi?action=viewprofile&username=USERNAME_HERE";
// A description under the MotM's name
var iMotMDesc = "This user has displayed great support towards the forums. Congratulations on earning Member of the Month!";
// No editting necessary, below this point
function popOpen() {
var iStyle1 = document.getElementsByTagName("style")[0].innerHTML;
var iStyle2 = document.getElementsByTagName("style")[1].innerHTML;
var iStyle = "<style type=\"text/css\">" + iStyle1 + iStyle2 + "\n</style>";
var iData = "<html>\n" +
"<head>\n" +
"<title>Member of the Month</title>\n" +
"" + iStyle + "\n" +
"</head>\n" +
"<body>\n" +
"<br />\n" +
"<div align=\"center\">\n" +
"<table width=\"90%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"bordercolor\">\n" +
"<tr>\n" +
"<td>\n" +
"<table width=\"100%\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\">\n" +
"<tr>\n" +
"<td class=\"titlebg\" align=\"center\"><font class=\"titletext\"><b>Member of the Month</b></font></td>\n" +
"</tr>\n" +
"<tr>\n" +
"<td class=\"windowbg\"><font size=\"1\"><br /><center><a href=\"" + iMotMUrl + "\" target=\"_blank\">" + iMotM + "</a></center><br />" + iMotMDesc + "</font></td>\n" +
"</tr>\n" +
"</table>\n" +
"</td>\n" +
"</tr>\n" +
"</table>\n" +
"</div>\n" +
"</body>\n" +
"</html>";
window.open("","","width=" + iWidth + ",height=" + iHeight + ",top=80,left=300,scrollbars=yes,resizable=no").document.write(iData);
}
var td = document.getElementsByTagName("td");
for(t=0;t<td.length;t++) {
if(td[t].width=="40%" && td[t].align=="left" && td[t].vAlign=="top" && td[t].innerHTML.match(/Total Members: /i)) {
td[t].innerHTML += "<br />";
td[t].innerHTML += "<font size=\"1\">View the <a href=\"javascript:popOpen();\">Member of the Month</a></font>.";
}
}
//-->
</script>