...

View Full Version : Need a script to popup on time



page1
06-07-2003, 05:27 AM
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.

Kor
06-07-2003, 09:47 AM
<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
06-07-2003, 09:49 AM
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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum