Re: Javascript

by "Debra Sawyers" <dsawyers(at)ptd.net>

 Date:  Fri, 23 Jun 2000 16:35:41 -0400
 To:  <hwg-basics(at)mail.hwg.org>
 References:  earthlink
  todo: View Thread, Original
How do you want to alter it??  

Deb



Can anyone help me with the altering of this script It came with my editor
> <script language="JavaScript">
> <!-- This Script And Over 400 Others Found At --!>
> <!--    Java City 2000 http://www.jc2k.com    --!>
> <!-- This script will display a picture that will dissapear from the page
> after a certain date
> is reached. -->
> 
> <!-- Begin
> function checknew(date) {
> var pic = "http://www.your-site.com/where-you-put-it/new.gif";
> expdate = new Date(date);
> curdate = new Date();
> if (expdate.getTime() > curdate.getTime())
> document.write("<img src=" + pic + ">");
> }
> // End -->
> </script>
> 
> <!-- Examples of how to call the script -->
> 
> <script> checknew("6/1/98") </script>Shown as "New" until 6/1/98<br>
> <script> checknew("12/31/98") </script>Shown as "New" until 12/31/98<br>
> <script> checknew("6/1/99") </script>Shown as "New" until 6/1/99<br>
> <script> checknew("12/31/99") </script>Shown as "New" until 12/31/99<br>
> 
> --
> David Pippen
> Georgia Dale Specialty Co.
> P.O. Box 150064
> Atlanta, GA 30315
> 1-888-274-9342
> www.georgia-dale-specialty.com
> www.gadale.com
> 
> 

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA