<html>
<head>
</head>
<body>
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time < 10)
{
document.write("<b>早上好</b>")
}
else
{
document.write("<b>中午好</b>")
}
</script>
<body>
</html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time < 10)
{
document.write("<b>早上好</b>")
}
else
{
document.write("<b>中午好</b>")
}
</script>
<body>
</html>