You're here: Snippet Directory » HTML/JavaScript (65)
Language:

JavaScript HTML Pagestamping

Language: English
Programming Language: JavaScript
Published by: rayfield [not registered]
Last Update: 5/15/2006
Views: 337


Description

A small script to create a small table wherever you paste in the script, and generates a Page Title, Referring URL, Last Modified, and Current Time info in the table.

Code

1 <!-- Javascript page info Utility v0.1 --> 2 <!-- Mary Rayfield 1/10/01 --> 3 <!-- maryutd@yahoo.com --> 4 5 var title = document.title; 6 var titlelen = (title.length+275); 7 var now = new Date(); 8 var timestr = now.toLocaleString(); 9 10 document.write("<table BORDER=1 CELLSPACING=0 COLS=1 BGCOLOR=azure WIDTH="+titlelen+">"); 11 document.write("<tr><td>"); 12 document.write("<font color=black size=2><b>"); 13 document.write("Page Title: "+document.title); 14 document.write('<BR>Referrering URL: <a href="'+document.referrer+'">'+document.referrer+'</a>'); 15 document.write("<BR>Last modified: "+document.lastModified); 16 document.write("<BR>Current Time:"+timestr); 17 document.write("</b></font></td></tr></table>"); 18

No comments avaiable

Add a comment

Name *  

Email (won't be displayed) *    

Website  

Comment *  

Sicherheitscode Security Code *    

RSS