Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Javascript / VB Script JavaScript and VBScript are interpreted, scripting languages that let you embed simple programs into Web pages. JavaScript/VBScript programs are embedded directly within the HTML document. When the browser loads the HTML document, the programs are also loaded.

Javascript / VB Script Thread, Javascript Displaying self updating time on a webpage Tutorial in Web Development; <font size="4"><b>Javascript Displaying self updating time on a webpage Tutorial PHP Code: < html > < body > < div ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=6886


Reply
LinkBack Thread Tools Display Modes
Javascript Displaying self updating time on a webpage Tutorial
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
02-12-2008, 12:54 AM
 
<font size="4"><b>Javascript Displaying self updating time on a webpage Tutorial

PHP Code:
<html>

<
body>

<
div id="date">

</
div>

<
script language="JavaScript">

//Create a function to call later.
function update() {

//This variable equals the computers date.
time = Date();

//Change the inside html "date" to the variable time.
document.getElementById('date').innerHTML = time;

//update this function in 0 time.
setTimeout("update()", 0);

}

//call our function to start.
update();

</script>

</body>

</html>

Easy eh? Here it is without comments so you can copy & paste without need to edit:

<html>

<body>

<div id="date">

</div>

<script language="JavaScript">

function update() {
time = Date();
document.getElementById('date').innerHTML = time;
setTimeout("update()", 0);

}

update();

</script>

</body>

</html>
C Ya
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
 
Junior Member

Reply With Quote
 
Join Date: May 2009
Posts: 9
23-05-2009, 07:45 AM
 
6878Votre clinique en ligne achat cialis , 15784 cialis a vendre citrate de sildenafil bon marche , 12764 a vendre cialis belgique
 
 
 
Reply

Javascript / VB Script Thread, Javascript Displaying self updating time on a webpage Tutorial in Web Development; <font size="4"><b>Javascript Displaying self updating time on a webpage Tutorial PHP Code: < html > < body > < div ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=6886


Bookmarks

Tags
displaying, javascript, time, tutorial, updating, webpage


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript XMLHttpRequest Object Tutorial Developer Javascript / VB Script 0 02-12-2008 12:52 AM
Getting Browser details and Version Detection using JavaScript Developer Javascript / VB Script 0 27-11-2008 07:50 PM
Adding Javascript to your Template Developer Articles 0 27-10-2008 09:44 PM
HTML A basic Webpage structure Tutorial Developer Articles 0 17-10-2008 09:07 PM
Important SEO Tips To Improve Your Webpage Developer Search Engine Optimization (SEO) 0 11-09-2008 06:35 PM