Forums
This topic is locked
date format
31 Jan 2007 22:40:49 TJ M posted:
Is there any way to cashe the content on these posts so that when you post a long one and forget that you didn't put a subject that you won't lose everything you just wrote???Let's try this for the fourth time...
I'm using DW 8. On the green health and nutrition template/started page, when you view it in your browser, it has the date below the header in the green bar. (global?) I can't see this script anymore, and I don't know why. It has also changed all of the other pages I am using based on this template.
Yesterday, I added some navigation links in there to show the client; once it was added, the date was gone. I later removed the links in the bar, and the date is still gone- and it has changed everything in the DW template.
HOW do I correct this and get the date back? WHY did it do this program wide instead of just site wide? HOW do I prevent this from happening again?
I've removed tags because I'm not able to view the text otherwise; it gives me the graphics. Thanks.for helping!
TJM
tr bgcolor="#99CC66"
<td colspan="7" id="dateformat" height="20"> <script language="JavaScript" type="text/javascript">
<document.write(TODAY); /script /td
Replies
Replied 31 Jan 2007 22:42:59
31 Jan 2007 22:42:59 TJ M replied:
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December"
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE ---------------
</script>
</head>
<body bgcolor="#F4FFE4">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#D5EDB3">
<td width="382" colspan="3" rowspan="2"><img src="mm_health_photo.jpg" alt="Header image" width="382" height="101" border="0" /></td>
<td width="378" height="50" colspan="3" id="logo" valign="bottom" align="center" nowrap="nowrap">insert website name</td>
<td width="100%"> </td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="51" colspan="3" id="tagline" valign="top" align="center">OPTIONAL TAGLINE HERE</td>
<td width="100%"> </td>
</tr>
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr bgcolor="#99CC66">
<td colspan="7" id="dateformat" height="20"> <script language="JavaScript" type="text/javascript">
<document.write(TODAY);> </script> </td>
</tr>
<tr>
<td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
------------------------------------------------------------------------------------
This is what is above and then the text of the script with tags for this part of the page, which will hopefully post.
TJM
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December"
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE ---------------
</script>
</head>
<body bgcolor="#F4FFE4">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#D5EDB3">
<td width="382" colspan="3" rowspan="2"><img src="mm_health_photo.jpg" alt="Header image" width="382" height="101" border="0" /></td>
<td width="378" height="50" colspan="3" id="logo" valign="bottom" align="center" nowrap="nowrap">insert website name</td>
<td width="100%"> </td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="51" colspan="3" id="tagline" valign="top" align="center">OPTIONAL TAGLINE HERE</td>
<td width="100%"> </td>
</tr>
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr bgcolor="#99CC66">
<td colspan="7" id="dateformat" height="20"> <script language="JavaScript" type="text/javascript">
<document.write(TODAY);> </script> </td>
</tr>
<tr>
<td colspan="7" bgcolor="#99CC66" background="mm_dashed_line.gif"><img src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
------------------------------------------------------------------------------------
This is what is above and then the text of the script with tags for this part of the page, which will hopefully post.
TJM
Replied 03 Feb 2007 08:38:45
03 Feb 2007 08:38:45 TJ M replied:
So, good news on this. When the pages are live on the site, the date
shows up. When I test, it's not. Anyone know why?
Thanks,
TJM
shows up. When I test, it's not. Anyone know why?
Thanks,
TJM
Replied 27 Aug 2007 18:00:40
27 Aug 2007 18:00:40 henry e replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
So, good news on this. When the pages are live on the site, the date
shows up. When I test, it's not. Anyone know why?
Thanks,
TJM
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
the problem is you closed the code it self with <>
just copy this and paste
<script language="JavaScript" type="text/javascript">document.write(TODAY); </script>
So, good news on this. When the pages are live on the site, the date
shows up. When I test, it's not. Anyone know why?
Thanks,
TJM
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
the problem is you closed the code it self with <>
just copy this and paste
<script language="JavaScript" type="text/javascript">document.write(TODAY); </script>