|
|
| dmhauser 2004-08-10, 11:16 pm |
| Hello, oh gurus of DW!
I want viewers of my website to be able to tell when the site was last
updated. I know there is probably some kind of code I have to use, but I am
clueless.
Thanks in advance for any help.
Dawn
| |
| Murray *TMM* 2004-08-10, 11:16 pm |
| INSERT | Date will insert a dynamic date on the page. This date will change
to reflect the last time that page was saved....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dmhauser" <webforumsuser@macromedia.com> wrote in message
news:cfarro$p62$1@forums.macromedia.com...
> Hello, oh gurus of DW!
>
> I want viewers of my website to be able to tell when the site was last
> updated. I know there is probably some kind of code I have to use, but I
am
> clueless.
>
> Thanks in advance for any help.
>
> Dawn
>
>
| |
| ~Flash~ 2004-08-10, 11:16 pm |
| <scratcheshead>ahh... my bad I did that a little fast without
thinking</scratcheshead>
A better code is:
<SCRIPT language=javascript>
var LastUpdated = document.lastModified;
document.writeln ("This page was last updated " + LastUpdated);
</SCRIPT>
Flash
| |
| ~Flash~ 2004-08-10, 11:16 pm |
| GURU REPORTING!!
<SCRIPT language=javascript>document.writeln(" last updated " + document.lastModified);</SCRIPT>
FLASH
| |
| Murray *TMM* 2004-08-10, 11:16 pm |
| That's invalid syntax, you know?
<SCRIPT type="text/javascript">
var LastUpdated = document.lastModified;
document.writeln ("This page was last updated " + LastUpdated);
</SCRIPT>
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"~Flash~" <webforumsuser@macromedia.com> wrote in message
news:cfaseu$pss$1@forums.macromedia.com...
> <scratcheshead>ahh... my bad I did that a little fast without
> thinking</scratcheshead>
>
> A better code is:
>
> <SCRIPT language=javascript>
> var LastUpdated = document.lastModified;
> document.writeln ("This page was last updated " + LastUpdated);
> </SCRIPT>
>
> Flash
>
| |
| dmhauser 2004-08-10, 11:16 pm |
| WOW...that was quick!
I added the code, but it doesn't seem to be working. Maybe I am not adding
the code in the correct manner? How do I do it in Dreamweaver? I used
NetObjects Fusion prior to this. Thanks again!
Dawn
| |
| ~Flash~ 2004-08-10, 11:16 pm |
| Murray... have you tryed it... it works fine for invalid syntax... just drop it in were you want the code to go it'll take on the text style of it's surroundings.
Flash
| |
| Murray *TMM* 2004-08-10, 11:16 pm |
| Working and being valid code are two different things. When I make code
recommendations, I always try to make sure I am recommending valid code.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"~Flash~" <webforumsuser@macromedia.com> wrote in message
news:cfau5v$ruo$1@forums.macromedia.com...
> Murray... have you tryed it... it works fine for invalid syntax... just
drop it in were you want the code to go it'll take on the text style of it's
surroundings.
>
> Flash
| |
| dmhauser 2004-08-10, 11:17 pm |
| OK...here is what I did. On the toolbar, I selected Invisibles - Insert
Script. I pasted in this script:
<SCRIPT type="text/javascript">
var LastUpdated = document.lastModified;
document.writeln ("This page was last updated " + LastUpdated);
</SCRIPT>
I tried viewing the page, and nothing was there. So, I thought perhaps I need
to upload the file to the internet in order to see the script work. Still
nothing. I get a Runtime Error - Syntax error.
HELP!!!!!
| |
| Murray *TMM* 2004-08-10, 11:17 pm |
| Where was your cursor when you did that?
Show me the code on the page, please.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dmhauser" <webforumsuser@macromedia.com> wrote in message
news:cfb1j7$2hc$1@forums.macromedia.com...
> OK...here is what I did. On the toolbar, I selected Invisibles - Insert
> Script. I pasted in this script:
>
> <SCRIPT type="text/javascript">
> var LastUpdated = document.lastModified;
> document.writeln ("This page was last updated " + LastUpdated);
> </SCRIPT>
>
> I tried viewing the page, and nothing was there. So, I thought perhaps I
need
> to upload the file to the internet in order to see the script work. Still
> nothing. I get a Runtime Error - Syntax error.
>
> HELP!!!!!
>
>
>
| |
|
|
| Murray *TMM* 2004-08-10, 11:17 pm |
| Change this -
<script language="JavaScript"
src="Templates/%3CSCRIPT%20language=javascript%3E">
<SCRIPT type="text/javascript">
var LastUpdated = document.lastModified;
document.writeln ("This page was last updated " + LastUpdated);
</script>
to this -
<SCRIPT type="text/javascript">
var LastUpdated = document.lastModified;
document.writeln ("This page was last updated " + LastUpdated);
</script>
Or use the INSERT | Date method I originally described.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dmhauser" <webforumsuser@macromedia.com> wrote in message
news:cfb4r7$68v$1@forums.macromedia.com...
> I have the test script at:
>
> http://www.woodtronics.com/public/datetest.htm
>
> There are no pics or anything, but the script was placed below the
copyright.
>
>
| |
| dmhauser 2004-08-11, 7:16 pm |
| Oops....I meant the Insert | Date method. 8)
Thanks to everyone for your help!
Dawn
| |
| Murray *TMM* 2004-08-13, 12:16 pm |
| That's invalid syntax, you know?
<SCRIPT type="text/javascript">
var LastUpdated = document.lastModified;
document.writeln ("This page was last updated " + LastUpdated);
</SCRIPT>
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"~Flash~" <webforumsuser@macromedia.com> wrote in message
news:cfaseu$pss$1@forums.macromedia.com...
> <scratcheshead>ahh... my bad I did that a little fast without
> thinking</scratcheshead>
>
> A better code is:
>
> <SCRIPT language=javascript>
> var LastUpdated = document.lastModified;
> document.writeln ("This page was last updated " + LastUpdated);
> </SCRIPT>
>
> Flash
>
| |
| dreamworms 2004-08-13, 7:18 pm |
| dmhauser wrote:
> Hello, oh gurus of DW!
>
> I want viewers of my website to be able to tell when the site was last
> updated. I know there is probably some kind of code I have to use, but I am
> clueless.
>
> Thanks in advance for any help.
>
> Dawn
>
>
Make some dynamic page to edit your page. Put dynamic date. You can use
Data Bindin panel. Tutorial for this can be obtained at
http://www.dreamweaverfever.com or http://dmxzone.com
HTH
| |
| Murray *TMM* 2004-08-13, 11:16 pm |
| Great - that works pretty well. Remember, it only works for THAT page....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dmhauser" <webforumsuser@macromedia.com> wrote in message
news:cfdg9d$ovr$1@forums.macromedia.com...
> Oops....I meant the Insert | Date method. 8)
>
> Thanks to everyone for your help!
>
> Dawn
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |