Convert this javascript to PHP?
Posted: 08 Dec 2006, 02:17
I have a simple javascript that I have been using to display the current date on my site. But when it lands on a certain date, it changes to display that. Like if it lands on my birthday it puts up a message, or if it lands on the week of halloween it displays something else. But the rest of the time it just shows the normal date. Yes it's a holiday script.
http://phpbbmodders.net/pastebin.php?show=48
That is added to an .js file and put on the page via
<script language="javascript" src="dates.js"></script>
where the date is to show.
I have tried to make it in php but I could only get it to show the next holiday rather then just the date and just the extra stuff on the dates I want.
http://phpbbmodders.net/pastebin.php?show=48
That is added to an .js file and put on the page via
<script language="javascript" src="dates.js"></script>
where the date is to show.
I have tried to make it in php but I could only get it to show the next holiday rather then just the date and just the extra stuff on the dates I want.