Script Categories

Page Details >>> New Links.

Displaying links as new for a few weeks after adding them is great. But, adding, removing, and updating that "New" icon for each link is pointless! Let JavaScript do your work for you! Just add a small code (less than 40 characters) next to each link with the date you want it to expire, and it will automatically display the "New" icon until the expiration date.

Shown as "New" until 06/01/2050
Shown as "New" until 12/01/2050
Shown as "New" until 06/01/2051
Shown as "New" until 12/01/2051

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function checknew(date) {
var pic = "c0.gif";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=" + pic + ">");
// End -->
checknew("06/01/2050") </script>Shown as "New" until 06/01/2050<br>
<script> checknew("12/01/2050") </script>Shown as "New" until 12/01/2050<br>
<script> checknew("06/01/2051") </script>Shown as "New" until 06/01/2051<br>
<script> checknew("12/01/2051") </script>Shown as "New" until 12/01/2051<br>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

casino games online