1. How many days living site (JS)

How many days living site (JS)

  |   1
How many days living site (JS)How many days living site (JS)A small script hack site for days on JS DLE will place anywhere on your website information about life expectancy of your site.

At any desired location to insert the page:

<SCRIPT Language="javascript">
<!-- hide from old browsers
var today = new Date()
var targetDate = new Date("08/25/2014") //Opening date site
var timeAfterTarget = Math.floor(( today.getTime() - targetDate.getTime() ) / 86400000)
var msg = "<b>Website online:</b> " + timeAfterTarget + "  days"

P.S.: change date time with your starting site (new Date("08/25/2014")

That's all!
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.



Comments 1

Commented By MongKol on August 26, 2015 (11:38 pm)
good small js, thanks for sharing.
N/A 17Forum topics : 0Forum replies : 47Forum likes : 3
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.