Here's a simple example using JavaScript
:
<script language="JavaScript">
today = new Date();
chdte = new Date("Feb 15, 2004");
if (today < chdte){
document.write("<img src=../images/old.gif>");
}else{
document.write("<img src=../images/new.gif>");
}
</script>
The "today" and "chdate" variables contain the current
date and the change date. The if statement compares
these, and adds the correct HTML to the page by running
the appropriate document.write statement.
In ASP, you would code something like:
<%If (Now < #2/15/2004# ) Then%>
<img src="../images/old.gif">
<%Else%>
<img src="../images/new"
<%End If%>
You can put whatever HTML you want between the
<%If ... Then%> and the <%Else%>, or between the
<%Else%> and the <%End If%>. Both versions will appear in
the FrontPage editor, but only when when you browse the
page from teh Web server.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
>-----Original Message-----
>How can I replace content (cells/tables etc.) on a page
or pages with FP
>2003 on a scheduled basis?
>
>I tried the "include page based on schedule" but can't
get it to work. I
>have customers that want their Web updated all the time
with this or that
>and its getting to be a pain.
>
>Does this require "asp" or some other type of scripting
and if so, is there
>somewhere someone could direct me to where I can find
more information?
>
>Thanks a bunch!
>
>
>.
>