کد HTML:<!– begin the script–> <mce:script language=”JavaScript”><!– function getLongDateString() { monthNames = new Array(“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”<img border=”0″ src=”Http://mihanblog.com/Yahoo/3.Gif” mce_src=”Http://mihanblog.com/Yahoo/3.Gif”>; dayNames = new Array(“Sunday”,”Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”,”Saturday”<img border=”0″ src=”Http://mihanblog.com/Yahoo/3.Gif” mce_src=”Http://mihanblog.com/Yahoo/3.Gif”>; dayOfWeek = this.getDay(); day = dayNames[dayOfWeek]; dateOfMonth = this.getDate(); monthNo = this.getMonth(); month = monthNames[monthNo]; year = this.getYear(); if (year < 2000) year = year + 1900; dateStr = day+” “+dateOfMonth+” “+month+”, “+year; return dateStr; } Date.prototype.getLongDateString=getLongDateString; function DocDate() {DateTimeStr = document.lastModified; secOffset = Date.parse(DateTimeStr); if (secOffset == 0 || secOffset == null) //Opera3.2 dateStr = “Unknown”; else { aDate = new Date(); aDate.setTime(secOffset); datestr = aDate.getLongDateString(); } return dateStr; } document.writeln(“<center>”,DocDate()); document.write(“: آخرین بروز رسانی </center>”<img border=”0″ src=”Http://mihanblog.com/Yahoo/3.Gif” mce_src=”Http://mihanblog.com/Yahoo/3.Gif”>; // –></mce:script> <!–end of the script–>
علاقه مندی ها (بوک مارک ها)