Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,456 members, 7,816,063 topics. Date: Friday, 03 May 2024 at 01:46 AM |
Nairaland Forum / Science/Technology / Webmasters / Wapka User Birthday Reminder/notification (first On Net) (1480 Views)
Empowering Wapka User - Request Any code and get it within 24hrs / How To Add Comment Box In My Wapka Site / Buy Lipitor Now! Best Price On Net For Lipitor (2) (3) (4)
(1) (Reply)
Wapka User Birthday Reminder/notification (first On Net) by rayshy12: 5:41pm On Dec 29, 2014 |
Loadedcity is the first site to drop this tutorial no douhgt apply this xhtml code to where you want the reminder to be <script type="text/javascript">var today=new Date() //Enter the occasion's MONTH (1-12) and DAY (1-31): var theoccasion=new Date(today.getFullYear(), ) //Customize text to show before and on occasion. Follow grammer below: var beforeOccasionText="left Before 's Birthday"var onOccasiontext="Happy Birthday , Greetings from all members of studentcon ! We wish that you may have many many more birthdays to come!"var monthtext=new Array("Jan","Feb","Mar","April","May","June","July","Aug","Sep","Oct","Nov","Dec" theoccasion.setMonth(theoccasion.getMonth()-1) //change to 0-11 month format var showdate="("+monthtext[theoccasion.getMonth()]+""+theoccasion.getDate()+""//show date of occasion var one_day=1000*60*60*24 var calculatediff=""calculatediff=Math.ceil((theoccasion.getTime()-today.getTime())/(one_day)) if (calculatediff<0){ //if bday already passed var nextyeartoday=new Date() nextyeartoday.setFullYear(today.getFullYear()+1) calculatediff=Math.ceil((nextyeartoday.getTime()-today.getTime())/(one_day)+calculatediff) } //Display message accordingly var pluraldayornot=(calculatediff==1)?"day":"days"if(calculatediff>0)document.write(""+calculatediff+""+pluraldayornot+""+beforeOccasionText+""+showdate+"!" else if (calculatediff==0)document.write("<b>"+onOccasiontext+""+showdate+"!</b>"</script><br /> hope it help? - See more at: http://loadedcity.com/forum2_theme_111040599.xhtml?tema=383 |
(1) (Reply)
How To Make Money Online Blogging In 2015 / Does Google Have A New Logo? / Online MLM Business Classified Advertising Services
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |