Webmaster Now
Webmaster-Now: guide, advices and tools for webmaster
 
 
   

Keyword

Manage  Promote Tools   Services
 
 


The guide to help you launch a succesful web site

Keyword

Create

Manage

Promote

 
Tools

Services

 

Quick links:

Hosting review

Market your site

Earn money on the Internet

10 ideas to attract more people

Webmaster books

 

 

 
Webmaster-Now > web site creation > language > javascript examples

Javascript examples

note: open the source page on your web browser to copy a Javascript

A simple way to dynamically use Javascript. Just a few lines of codes to give the time and date:

Script details :
<script language="javascript">
<!--
document.write(Date());
-->
</script>

 

What day is it today ?

 

Script details:
<SCRIPT LANGUAGE = "JavaScript">

var now = new Date();
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
document.write("Today is" + dayNames[now.getDay()] + ".");
</SCRIPT>
 

Calculate the advertising cost

Enter the CPM and either your budget or the impressions number, this Javascript calculates the third variable for you. Useful if you want to know how many impressions you can get from a specified budget:

Budget:
CPM:
Impressions:
Script:Java Script Source

My vacation pictures

It is not with this kind of web site that I can make money with, it is just for fun !


Script:Java Script Source
Pictures: Beautiful Monde

 
Back to Javascript language page

 

Keyword | Create | Manage | Promote | Tools 

 

site map | about webmaster-now | contact webmaster-now | webmaster links | webmaster-now

 

Webmaster-Now helps webmasters with guide, tips, advices, reviews and tools to develop a sucessful web site
© 2005, Webmaster-Now

Version française: Guide-Webmaster, conseils et outils pour la création de site Web