Forum: Geek Forum Topic: javascript help pls? started by: masher Posted by masher on Mar. 20 2001,23:20
I have a small script at the bottom of the pages in my website to put the date that the file was last edited
// Stop hiding from non-JavaScript Browsers -->
quote: That was from < http://developer.netscape.com/docs/manuals/js/client/jsref/document.htm#1193811 > Is there another way of automatically rendering the date that the file was last edited? I don't feel like changing the date everytime I edit the file... ------------------ Posted by hal0 on Mar. 21 2001,00:56
quote: guessing here.. i'm not good at java.. cuz i hate it, but the first document.write has " quotes, while the second uses ' quotes.. try changing the second to " quotes ------------------ Posted by masher on Mar. 21 2001,02:34
the actual script itelf works. Its just that the server doesn't provide the information for the script to render the correct date.I'm wondering if there is another way (javascript or otherwise) to do it, or do I have to put in the date manually? ------------------ Posted by hal0 on Mar. 21 2001,21:52
so it does show a date, but it doesn't show the date you want?------------------ Posted by masher on Mar. 24 2001,11:13
Netscape shows January 1, 1970 GMT.IE shows the time that the page loaded. ------------------ Posted by porn_dealer on Mar. 25 2001,06:28
Better yet, if your web server runs PHP, you can rename your page to .php and run the following code (insert it wherever you want it to go on the page):code: That should work. ------------------ |