Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need a script to popup on time

    Hello All

    I hope you can help me again I want to add a script into my ebook that will popup a message on the first of each month. It will be a reminder script for the people who download my free ebook.

    As an example, I reader of my ebook will be reminded with a small popup window to check for updates on the first of every month.

    Is there a javascript already available or can someone modify one for me that will be compatiable.

    Please help me as i recon this would be a great addition to my free ebook.
    Steve Szasz - Webmaster
    Page1 Ranking and Website Optimization

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    <html>
    <head>
    <script language="JavaScript">
    var data = new Date();
    var day = data.getDate();
    function popup() {
    if (day == 1) {
    window.open('popup.html','_blank','left=50,top=10,scrollbars=no,width=300,height=330');
    }
    }
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000" onload="popup()">
    <script language="JavaScript">
    </script>
    </body>
    </html>
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    sorry, here's the clean page. It will open a popup window on each first day of the month.

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript">
    var data = new Date();
    var day = data.getDate();
    function popup() {
    if (day == 1) {
    window.open('popup.html','_blank','left=50,top=10,scrollbars=no,width=300,height=330');
    }
    }
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000" onload="popup()">
    </body>
    </html>
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •