•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 391,908 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,580 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 659 | Replies: 2 | Solved
![]() |
•
•
Join Date: Feb 2007
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
I'm so sorry for asking but where should I insert or save C++.:rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes:
I'm skilled in html css and javascript but I don't get this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function test()
{
alert("NIET KLIKKEN VERDOMME")
}
</script>
<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)
}
function checkTime(i)
{
if (i<10)
{i="0" + i}
return i
}
</script>
</head>
<body bgcolor="#FFFFE1" onload="startTime()">
<center><div id="txt"></div>
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time>5 && time<12)
{
document.write("Good morning!")
}
else if (time>11 && time<18)
{
document.write("Good day!")
}
else if (time>17 && time<24)
{
document.write("Good evening!")
}
else
{
document.write("Good night!")
}
</script></center>
<br/>
<center>
<table border="0" width=50%>
<tr>
<center><input type="button" value="klikken" onclick="test()"></center>
</tr>
<tr>
</tr>
</table>
</center>
</body>
I'm skilled in html css and javascript but I don't get this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function test()
{
alert("NIET KLIKKEN VERDOMME")
}
</script>
<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)
}
function checkTime(i)
{
if (i<10)
{i="0" + i}
return i
}
</script>
</head>
<body bgcolor="#FFFFE1" onload="startTime()">
<center><div id="txt"></div>
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time>5 && time<12)
{
document.write("Good morning!")
}
else if (time>11 && time<18)
{
document.write("Good day!")
}
else if (time>17 && time<24)
{
document.write("Good evening!")
}
else
{
document.write("Good night!")
}
</script></center>
<br/>
<center>
<table border="0" width=50%>
<tr>
<center><input type="button" value="klikken" onclick="test()"></center>
</tr>
<tr>
</tr>
</table>
</center>
</body>
Last edited by bananenflip : Feb 27th, 2007 at 10:13 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
Other Threads in the C++ Forum
- Previous Thread: help with few errors
- Next Thread: please help



Linear Mode