菜鸟问题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获取gridview值失败! 请问:如何用js获取状态栏里显示的链接? 打开有些网页时总要提示错误? 在table中添加滚动条 遇到html和flash交互的问题了,大家有经验吗? 求哪位捞我 很不诚实的FireFox!! 抛砖引玉,大家来说一说 js 动态加行 大哥大姐们快来帮帮我,页面传值问题,偶有点菜呀~ Web方式下,如何在客户端控制Server的端口(比如串口或并口) 如何在一个网站首页的地址栏中显示自己可以任意设置的网址呢?或者不显示地址栏 新手入门问题
<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>