help me think
At http://www.ptcc.org I have a popup window that is controlled by a cookie that will only let it pop up once within 24 hours. The popup window contains a devotional that changes daily.
the page that I want to work with is http://www.ptcc.org/odb/odb.htm
I go in everyday and change the "include" tag in Frontpage to get the current day.
I name each days devotional according to the date it should be displayed. i.e. Dec 1, 1000 would be 120100.htm
I use Frontpage2000 to code my pages. What I am wondrering is this: Is there any way to make less work for myself than going in everyday and changing the included page (the daily devotional) and let a java script pull the page for me.
the page that I want to work with is http://www.ptcc.org/odb/odb.htm
I go in everyday and change the "include" tag in Frontpage to get the current day.
I name each days devotional according to the date it should be displayed. i.e. Dec 1, 1000 would be 120100.htm.... I set up a new months worth of devotionals on the first of each month.
Can someone help me be creative??
Todd Stephens
Owner - Hudspeth House B&B - www.hudspethinn.com
Webmaster/Network Admin - Paramount Terrace Christian Church - www.ptcc.org
Webmaster - www.amarilloweb.net
Mark Hensler posted this at 05:26 — 12th December 2000.
He has: 4,048 posts
Joined: Aug 2000
I'm assuming you want the javascript to do it all. so I'll edit the line that opens the popup.
Also, I'm assuming the pages in the date format you showed are in the same dir as "odb.htm".
So, try this...
in your "leftframeministries.htm" file, look for this code
<script LANGUAGE="JavaScript">
<!-- Begin
var expDays = 1; // number of days the cookie should last
<del>var page = "http://www.ptcc.org/odb/odb.htm";</del>
var windowprops = "width=500,height=300,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
change the underlined line to this:
myDate = new Date
theMonth = myDate.getMonth();
theDay = myDate.getDate();
theYear = myDate.getYear();
var page = "http://www.ptcc.org/odb/"+theMonth+theDay+theYear+".htm";
preview of what should happen:
<html>
<body bgcolor="#ffffff" text="#000000" id=all>
<script language=javascript>
<!--
myDate = new Date
theMonth = myDate.getMonth();
theDay = myDate.getDate();
theYear = myDate.getYear();
var test = "prefix"+theMonth+theDay+theYear+"sufix";
document.write (test)
//-->
</script>
</body>
</html>
Looks like a nice site. And a good church. It's always nice to see a church that has it's roots firmly planted in the Bible.
Mark Hensler
If there is no answer on Google, then there is no question.
ToddStep posted this at 19:32 — 15th December 2000.
They have: 17 posts
Joined: Sep 2000
With just a hair of modification I was able to achieve excatly the result I wanted with your script submission!
You can see the results at http://www.ptcc.org
Thanks!
Todd Stephens
Owner - Hudspeth House B&B - www.hudspethinn.com
Webmaster/Network Admin - Paramount Terrace Christian Church - www.ptcc.org
Webmaster - www.amarilloweb.net
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.