Cut & Paste "What's New?" image
|
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.
Example:
Dynamic Drive
Note: This image will be shown until Dec 22, 2008
Directions
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()":
<script>
expireat("November 21, 2008")
</script>
Here's an example:
<script>
expireat("November 23, 2008")
</script>
<a href="http://javascriptkit.com/new.htm">Five new scripts
added!</a>
A "what's new" image will be shown alongside the above link until Dec 23, 2008.