PC-2009

Friday, January 22, 2010

JavaScript-Time and Date



The first thing that you need to do is open Notepad and the you can just copy this code over and the save it as a .html file, i am sory about the picture i can't type it so i had to put it as a picture so just click on it and open the picture.

Example:

Todays date: 1/1/10
Todays time: 1:11 AM

Source code:














Tuesday, April 14, 2009

How Does HTML Work!


To write HTML you need to know what is notepad. Here you will be transcribing

code into notepad and then viewing it with a web browser. The code is called

HTML (Hyper Text Markup Language) and notepad is a commonly used text editor

on Window PCs. HTML may seem confusing at first but its is not.


To start off with copy the following HTML code into notepad. Be sure to copy the code exactly, otherwise your web page may not function correctly.

HTML Code:



The above code is all that is required to create a basic web page! Now save your file in notepad by selecting Menu and then Save. Click on the Save as Type drop down box and select the option All Files.

When asked to name your file, type "index.html", without the quotes. Double check that you did everything correctly and then press save.

And if you need more help with it you can Visit 'www.tizag.com' or 'www.w3schools.com'.




















How to Create Text To Speech Application

This is very cool and simple VBS application which you can prompt windows SAMake Windows TalkM to read any text you’re entering to the application.

Windows will speak everything which you have entered to the application hence we are creating.

1. First copy the below code in to a notepad

Dim msg, sapi
msg=InputBox("Enter any text and Press Ok","+++ My Talking Application +++")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg


2. And Save it as whatever+the+name+you+like.VBS (Ex. Speak.Vbs)

3. Open it via Dos prompt or simply you can right click on it and Select “Open with command prompt”

There will be a small window appear, type any text and press ok. You can hear the sound of Microsoft SAM.