java脚本即用特效源码从入门到精通帮你渡过难关

源代码在线查看: date&time.txt

软件大小: 1303 K
上传用户: sjb545893912
关键词: java 脚本 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

								
				   1.  把数据复制到你的Html档案的Body标记下   -->
				
				
				
				
				
				
				
				
								Stamp = new Date();
				document.write('' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + '');
				var Hours;
				var Mins;
				var Time;
				Hours = Stamp.getHours();
				if (Hours >= 12) {
				Time = " P.M.";
				}
				else {
				Time = " A.M.";
				}
				if (Hours > 12) {
				
				Hours -= 12;
				}
				if (Hours == 0) {
				Hours = 12;
				}
				Mins = Stamp.getMinutes();
				if (Mins < 10) {
				Mins = "0" + Mins;
				}
				document.write('' + Hours + ":" + Mins + Time + '');
				// -- End Hiding Here -->
				
				
				
							

相关资源