User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Feb 2007
Posts: 6
Reputation: bananenflip is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bananenflip bananenflip is offline Offline
Newbie Poster

Help please help

  #1  
Feb 27th, 2007
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>
Last edited by bananenflip : Feb 27th, 2007 at 10:13 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Posts: 1,095
Reputation: Lerner is a jewel in the rough Lerner is a jewel in the rough Lerner is a jewel in the rough Lerner is a jewel in the rough 
Rep Power: 9
Solved Threads: 141
Lerner Lerner is offline Offline
Veteran Poster

Re: please help

  #2  
Feb 27th, 2007
I still don't understand what you want to do. Do you want to write a comparable version of the posted code in C++? Do you want to insert some C++ code into the code you currently posted? What exactly do you want to do?
Reply With Quote  
Join Date: May 2006
Posts: 2,698
Reputation: WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold 
Rep Power: 14
Solved Threads: 219
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Maven

Re: please help

  #3  
Feb 27th, 2007
Originally Posted by Lerner View Post
I still don't understand what you want to do.

I agree. You may be skilled in HTML and CSS, but this is a C/C++ board. You post code here, not HTML/CSS markup language.
Age is unimportant -- except in cheese
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Other Threads in the C++ Forum

All times are GMT -4. The time now is 7:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC