100%
|
Post by Aaron on Apr 26, 2005 15:45:06 GMT -8
Member of the Month - PopUp[ Cross Browser ] Preview: HereMain 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 iStyle = "<style type=\"text/css\">" + iStyle1 + "\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>
#nosmileys#nosmileys
Last Edit: May 4, 2005 17:19:59 GMT -8 by Aaron
|
|
|
Post by CrAzY_J on Apr 26, 2005 17:30:06 GMT -8
sweet code ^_^
|
|
|
Post by CD on Apr 26, 2005 18:05:30 GMT -8
Nice one Naruto.
|
|
|
Post by ShadowyOne on Apr 26, 2005 19:40:58 GMT -8
Awesome, I like the idea. I was going to suggest to be able to change the text that says "View the Member of the Month," but I can see how do that now. Anyway, great job.
|
|
100%
|
Post by Aaron on Apr 26, 2005 19:58:33 GMT -8
Thanks!
|
|
|
Post by SonicX on Apr 28, 2005 19:22:22 GMT -8
You out done yourself once again.
|
|
|
Post by Ten Kabuto on May 1, 2005 8:51:22 GMT -8
|
|
100%
|
Post by Aaron on May 1, 2005 9:55:25 GMT -8
*fixed*
Try it now.
|
|
|
Post by Ten Kabuto on May 1, 2005 13:41:25 GMT -8
Still wont.
|
|
100%
|
Post by Aaron on May 1, 2005 19:29:50 GMT -8
It does work. You need to replace the code you have with the editted one in my first post.
|
|