JavaScript Time Sensitive Actions

1
2
//set a function with various date related parameters
function showBanner(startYear, startMonth, startDay, startHour, startMinute, endYear, endMonth, endDay, endHour, endMinute) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This snippet, allows you to set a 'from' and 'to' timeframe in which you will be able to perform time sensitive action.
e.g. show a button on a website between a specific time frame and hide it after the time frame has completed.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.