菜鸟问题java?在线求帮助! thehour = thedate.gethours();-------->thehour = thedate.getHours();注意大小写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body><script language="JavaScript">function hello(){var thedate;var thehour;thedate = new Date();thehour = thedate.getHours();//getHours();中的h大写if (thehour>=0 &&thehour<=5){document.write("朋友现在是凌晨了,要注意身体啊!");}if (thehour>=5 &&thehour<=11){document.write("朋友上午好!");}if (thehour>=11 &&thehour<=14){document.write("朋友中午好!");}if (thehour>=14 &&thehour<=18){document.write("朋友下午好!");}if (thehour>=18 &&thehour<=24){document.write("朋友晚上早点休息!");}}</script><script language="JavaScript"> hello();</script></body></html> 如何实现这种效果 请高手指教 现金征求答案:实现动态生成javascript树型结构 求助判断单选项和复选项是否选中的javascript代码 不知能不能行 菜鸟问题:变量为定义问题。 js能否实现文件上传?如果能,具体分为几个步骤??急!!!!!!!! window.location.reload()是什么意思?怎么用??? 在页面里怎样得到文本框中的值呢,JSP中需要用到 html标签隐藏难题 如何在一个网站首页的地址栏中显示自己可以任意设置的网址呢?或者不显示地址栏 新手入门问题
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<script language="JavaScript">
function hello()
{
var thedate;
var thehour;
thedate = new Date();
thehour = thedate.getHours();//getHours();中的h大写
if (thehour>=0 &&thehour<=5)
{
document.write("朋友现在是凌晨了,要注意身体啊!");
}
if (thehour>=5 &&thehour<=11)
{document.write("朋友上午好!");
}
if (thehour>=11 &&thehour<=14)
{document.write("朋友中午好!");
}
if (thehour>=14 &&thehour<=18)
{
document.write("朋友下午好!");
}
if (thehour>=18 &&thehour<=24)
{document.write("朋友晚上早点休息!");
}
}
</script>
<script language="JavaScript">
hello();
</script>
</body>
</html>