saramgsilva Posted February 17, 2006 at 01:35 PM Report #14221 Posted February 17, 2006 at 01:35 PM basta colores no codigo fonte o seguinte script: <SCRIPT LANGUAGE="JavaScript"> document.write(document.lastModified); </SCRIPT> serve para escrever a data e hora que foi feita a ultima alteração no ficheiro... 👍 é pena aparecer 02/17/06 ... e nao ser 17/02/06 www.saramgsilva.com As minhas apps no WP7 Marketplace Youtube : Galinho - Windows Phone 7.5
Saco Posted February 17, 2006 at 02:18 PM Report #14227 Posted February 17, 2006 at 02:18 PM ora bem eu nao domino muito o javascript, mas acho que podes fazer qualquer coisa do genero <SCRIPT LANGUAGE="JavaScript"> document.write(document.lastModified[3]); document.write(document.lastModified[4]); document.write(document.lastModified[2]); document.write(document.lastModified[0]); document.write(document.lastModified[1]); document.write(document.lastModified[5]); document.write(document.lastModified[6]); document.write(document.lastModified[7]); </SCRIPT>
saramgsilva Posted February 17, 2006 at 03:27 PM Author Report #14240 Posted February 17, 2006 at 03:27 PM um "upgrade" do Pedantilva <SCRIPT LANGUAGE="JavaScript"> var data_i = new Date (document.lastModified); var data_f = "Última Actualização a: "; data_f += data_i.getDate(); data_f += "-"; data_f += data_i.getMonth() + 1; data_f += "-"; data_f += data_i.getFullYear(); document.write(data_f); <SCRIPT> www.saramgsilva.com As minhas apps no WP7 Marketplace Youtube : Galinho - Windows Phone 7.5
David Pintassilgo Posted February 17, 2006 at 03:31 PM Report #14243 Posted February 17, 2006 at 03:31 PM Novas ideias, sugestões adicionar no tutorial sff 👍 Obrigado! https://www.portugal-a-programar.pt/forums/topic/1383-javascript-datahora-última-modificação/ cool stuffs to check. http://blog.zxcoders.com//
saramgsilva Posted February 17, 2006 at 03:41 PM Author Report #14246 Posted February 17, 2006 at 03:41 PM ora bem eu nao domino muito o javascript, mas acho que podes fazer qualquer coisa do genero <SCRIPT LANGUAGE="JavaScript"> document.write(document.lastModified[3]); document.write(document.lastModified[4]); document.write(document.lastModified[2]); document.write(document.lastModified[0]); document.write(document.lastModified[1]); document.write(document.lastModified[5]); document.write(document.lastModified[6]); document.write(document.lastModified[7]); </SCRIPT> nao sei pq mas tentei usar o teu e nao deu resultado nenhum... 👍 www.saramgsilva.com As minhas apps no WP7 Marketplace Youtube : Galinho - Windows Phone 7.5
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now