Sales Page Script- Automatically Update The Date

7 replies
Hey Warriors,

I've noticed a few sales pages always have the current date and time on after the "Dear Target" line on the sales page.

Is this done by some javascript or is there some other method?

Thanks for the help!

Brad Spencer
#automatically #date #page #sales #script #update
  • Profile picture of the author Gene Pimentel
    It's a simple java script. Here's one version:
    Code:
    <script language="JavaScript1.2">
    <!-- Begin
    var months=new Array(13);
    months[1]="January";
    months[2]="February";
    months[3]="March";
    months[4]="April";
    months[5]="May";
    months[6]="June";
    months[7]="July";
    months[8]="August";
    months[9]="September";
    months[10]="October";
    months[11]="November";
    months[12]="December";
    var time=new Date();
    var lmonth=months[time.getMonth() + 1];
    var date=time.getDate();
    var year=time.getYear();
    if (year < 2000)
    year = year + 1900;
    document.write("<right>" + lmonth + " ");
    document.write(date + ", " + year + "</right>");
    // End -->
    </script>
    {{ DiscussionBoard.errors[865547].message }}
  • Profile picture of the author Gene Pimentel
    No problem. You can edit or remove the "<right>" and "</right>" tags, depending on the desired position on the sales page.
    {{ DiscussionBoard.errors[865591].message }}
    • Profile picture of the author globalaffiliates
      Totally a Newbie Question, but how would I get this script active in my sales page for Wordpress? I tried simply copying/pasting in my HTML section, but didnt seem to work? Do I need to change something around in the script to get it to read from the date I want it to start and THEN it updates continuously?

      Thanks so much for the help.
      Signature
      Network Marketing is BOOMING on the Web! Learn how we're sponsoring OVER 30,000 monthly worldwide without mailing anything, without faxing anything, without calling anyone! Totally Internet and system-driven and we've only scratched the surface. Get started FREE! Sign up as an affiliate at: www.sfi4.com/13460840/FREE Then watch the explosion before your eyes. NO OBLIGATION.
      {{ DiscussionBoard.errors[4395615].message }}
      • Profile picture of the author Jesus Perez
        Originally Posted by globalaffiliates View Post

        Totally a Newbie Question, but how would I get this script active in my sales page for Wordpress? I tried simply copying/pasting in my HTML section, but didnt seem to work? Do I need to change something around in the script to get it to read from the date I want it to start and THEN it updates continuously?

        Thanks so much for the help.
        You need to go to Users > Your Profile and Disable the Visual Editor.
        Signature

        {{ DiscussionBoard.errors[4396556].message }}
  • Profile picture of the author Halmac
    There is a great website called dynamicdrive that has scripts for this and many other useful functions.
    {{ DiscussionBoard.errors[4396185].message }}
  • Profile picture of the author iBadrudin
    Gene Pimentel, thanks for sharing this I was looking for .. I look at some of the sales page there is also a format of day, date month year

    how to set it?

    iBadrudin
    {{ DiscussionBoard.errors[7052693].message }}

Trending Topics