Home / Free JavaScripts / Images & Music / Here

Cut & Paste "What's New?" image

Credit: JavaScript Kit

Description: This is a very practical script that allows you to display a "what's new" image beside new content for a certain amount of time, then disappear automatically when the time expires. Just set a date, and the image will be displayed up to and until that date, then automatically be removed.


   Dynamic Drive
Note: This image will be shown until Dec 22, 2008


Step 1: Insert the below into the <head> section of your page:

Step 2: Add the below code alongside the "new" content. By doing so, a "what's new" image will show up until the specified date in function "expireat()":

expireat("November 21, 2008")

Here's an example:

expireat("November 23, 2008")
<a href="">Five new scripts added!</a>

A "what's new" image will be shown alongside the above link until Dec 23, 2008.

JavaScript Tools:
Site Info

CopyRight (c) 2015 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info