|
Post by Wormopolis on Jan 8, 2010 9:03:48 GMT -8
Broswer Tested: IE and FF placement: global header (or footer if you want it below site)
This quick code lets you create a table that a brand new member will see immediately after registering. it will self expire the message after a determined number of days, I suggest 7 to 10 days. you can test how the table will look by putting "?testnewmemnote" at the end of your url while on main page (i.e. index.cgi?testnewmemnote)
requires a div element with id="newmemberinfo" and default style display=none. put your HTML message in that div.
<div id="newmemberinfo" style="display:none">blah blah blah</div>
code:
<center><table width="50%" class="bordercolor" cellpadding="1" cellspacing="0" style="display:none" id="newmemberinfo"><tr><td><table class="windowbg" width="100%"><tr><td><center><br>Welcome to WormoCodes<br><br>Thank you for registering. have a look around. if you have a new code request go ahead and post in the requests board. If you are looking for help with a code I wrote, go ahead and post in that code's thread. If you are looking for help with a code by someone else, post in the 'Other codes support' board and I will try to do what I can. DangerKart is also now taking requests in the graphics section.<br><br>Enjoy yourself.<br><br></center></td></tr></table></td></tr></table></center><br> <script type="text/javascript"> <!-- // new member info table with expiration // by Wormopolis
var daysBeforeExpire=7;
if (location.href.match(/register2/)) { dt=new Date(); dt.setDate(dt.getDate()+daysBeforeExpire); document.cookie="newmemnote=true; expires="+dt; } if (pb_username!='Guest' && document.cookie.match(/newmemnote=true/) || location.href.match(/testnewmemnote/)) document.getElementById('newmemberinfo').style.display='';
// --> </script>
preview: its just a regular table that disappears after a member has been around for a bit.
|
|
Reese
Junior Member
I've said one great thing!
Posts: 53
Reese said 0 great things
|
Post by Reese on Feb 13, 2010 16:49:49 GMT -8
can I make it Never go away?
|
|
|
Post by Wormopolis on Feb 13, 2010 19:09:51 GMT -8
I never really considered that because its supposed to only be seen by people that just registered recently.
I would think if you wanted a table that was always there, you could just put a table into the headers (like I have on the brutally honest board).
|
|