Web Application Practical Guide for XII Science
Web Application Practical Guide for XII Science
Certificate
This to certify that Ms. Aditya Gupta, student
of Grade-XII Science (Non Medical) has
successfully completed Web Application
Practical file during the academic session
2023-2034.
Acknowledgement
Page |3
Content
S. No. Content Page
No.
Windows Movie Maker
1. I. Introduction
II. Components of Movie Maker.
III. Steps to prepare a video.
Customizing and Embedding Multimedia
2. Components
[Link] to Multimedia
[Link] of Multimedia Components
[Link] a code to add audio in a webpage
[Link] a code to add a YouTube video in a webpage
[Link] a code to add a Vimeo video in a webpage
[Link] a code to add Facebook video in a webpage
[Link] a code to add Flash Files in a webpage
3.
JavaScript
I. Introduction to JavaScript
II. Standardization
III. Features of JavaScript
IV. Applications of JavaScript
V. The Script tag
VI. Saving and Running the code
VII. Components of JavaSCript
VIII. Functions
IX. Events
Programming using JavaScript
Printing a line of text
Program to show date and time
Program to show confirm box
Program to show alert box
Program to show prompt box
Program to call a function
Program to show function with an argument
Function that returns value
Function with arguments that returns a value
Page |5
Components of Windows
Movie Maker
The panes
The three major panes of Windows movie maker
are as following:
Task Pane: The Tasks pane lists the common
tasks that may be needed to perform while making
a movie, including importing files, editing, and
publishing your movie.
3) When the clip reaches a point near the place you want to
split the clip, click Pause. 4) Under the preview monitor, use
the playback controls to find the point where we want to split
the clip.
To Combine Clips
1) In the Contents pane or on the storyboard, hold
down the CTRL key, and then click the contiguous clips
which need to be combined.
2) Click Clip, and then click Combine. The name and
property information of the first clip in the group is
used for the new clip and the time is adjusted
accordingly.
P a g e | 12
Create Clips
Windows Movie Maker creates clips that are based on
the time stamps that the DV camera inserts when the
source video is originally recorded, as well as
significant frame changes in the video.
1) In the Contents pane, select the video clip for which
you want to create clips.
2) Click Tools, and then click Create Clips.
P a g e | 14
Publishing
Steps to Publish a Movie to your Computer
1) Click File, click Publish Movie.
2) Click This computer, and then click Next.
3) In the File name box, type a name for your movie.
4) In the Publish to box, choose where ever want to
save the movie once it's published, and then click Next.
5) Choose the settings to be used to publish the movie,
and then click Publish.
6) To watch the movie after it has been published,
select the Play movie after clicking Finish check box.
7) Click Finish.
P a g e | 17
Customizing and
Embedding Multimedia
Components
P a g e | 19
Introduction to Multimedia
Multimedia is a form of communication that uses a
combination of different content forms such as writing,
audio, images, animations, or video into a single
interactive presentation. It lets the user navigate,
interact, and create; and multimedia is used to
represent information in an interesting and interactive
manner.
Multimedia has become an inevitable part of any
presentation. It has found a variety of applications right
from entertainment to education. The evolution of
internet has also increased the demand for multimedia
content.
P a g e | 20
Types of Multimedia
Multimedia comes in several different formats. It can be
almost anything you see on internet. For instance- text,
audio, images, videos etc.
The most common way to discover the type of a file, is
to look at the file extension. When a browser sees the
file extension .htm or .html, it will treat the file as an
HTML file. The .xml extension indicates an XML file, and
the .css extension indicates a style sheet file. Pictures
are recognized by extensions like .gif, .png and .jpg.
Multimedia files also have their own formats with
different extensions like:
.swf
.wav
.mp3
.wmf
.mp4
.au
P a g e | 21
Examples of Multimedia
Images
An image is a visual representation of something
through photographs or pictures. Extensions
are .jpg, .png etc.
Audios
An audio is a sound, especially when recorded,
transmitted, or [Link] are .aiff, .mp3
Videos
P a g e | 22
Embedding an audio in
webpage
In Internet Explorer (IE) the audio can be included
using <BGSOUND> tag. bgsound tag works only in
IE and not in any other browsers. Example Code:
<bgsoundsrc="[Link]" LOOP="-1" >
IV. MixPod
MixPod creates a free flash widget to embed into our
site. Setting up a MixPod is super easy and requires
no knowledge of coding beyond where to paste the
snippet of code they give us. All we do is paste in our
MP3 link, insert the artist/track info for all the songs
in your playlist, and choose your skin and colors.
Then MixPod provides you with a rather large chuck
of code to paste into the site.
V. Using a Plug-in
Plug-ins are programs that helps browser to perform at
a higher level. A sound plugin does basically the same
thing the helper application does, except it works inside
the Netscape Navigator window rather than starting up
as a whole other program. Instead of WHAM popping up
and Netscape being pushed to the back while the
sound runs, a sound plug-in works inside of Netscape.
P a g e | 26
VI. MIDI
It's an acronym that stands for Musical
Instrument Digital Interface. That's a program
that acts as a go-between for an instrument and
something that creates the sound. Sort of like
running a guitar through a computer and then
out a speaker. A midi file over the Web works as
a program that runs the sound card.
P a g e | 27
allowscriptaccess="always"allowfullscreen="tr
ue"width="400"height="224"> </embed>
</object>
P a g e | 31
JavaScript
P a g e | 33
Introduction to
JavaScript
JavaScript is a scripting language that enables you to create
dynamically updating content, control multimedia, animate
images, pop-up menus etc. It is a lightweight object-oriented
programming language used by developers to make web pages
interactive.
Standardization
In November 1996, Netscape announced that it had
submitted JavaScript to European Computer
Manufacturers Association (ECMA) for consideration as
an industry standard, and subsequent work resulted in
the standardized version named ECMAScript. ECMA is
an international standard organization for information
and communication system.
In June 1997, ECMA International published the first
edition of the ECMA-262 specification. A year later, in
June 1998, some modifications were made to adapt it
to the ISO/IEC-16262 standard, and the second edition
was released. The third edition of ECMA-262 is the
version most browsers currently use.
Fourth edition of ECMAScript standard was not released
and does not exist. Fifth edition of the ECMAScript
standard was released in December 2009. The current
edition of ECMAScript standard is 5.1 and it was
released in June 2011. This way, JavaScript has become
one of the most popular programming languages on the
web.
P a g e | 35
Features of Javascript
Browser Support
All browsers have accepted JavaScript as a scripting
language and provide integrated support for it. For
example, to access flash content, you need to install
flash plug-in in your browser. But to use JavaScript, you
don't have to use any plug-in at all.
Run-time Environment
JavaScript typically relies on a run-time environment
(e.g. in a web browser) to provide objects and methods
by which scripts can interact with "the outside world".
In fact, it relies on the environment to provide the
ability to include/import scripts (e.g. HTML <script>
elements). This is not a language feature as such but it
is common in most JavaScript implementations.
Vendor-specific Extensions
JavaScript is officially managed by Mozilla Foundation,
and new language features are added periodically.
However, only some JavaScript engines support these
new features.
P a g e | 37
Object Type
JavaScript supports the development of object types
and in this context JavaScript supports both predefined
and user-defined objects. It is possible to assign objects
of any type to any variable. It is possible to instantiate
the defined object types to create object instances in
JavaScript, which is a very powerful feature of Object
based language.
Object Instantiation
In order to carry out the process of creating specific object
instances available in JavaScript, you can make use of a
new operator. These two powerful, object-based features
supported by JavaScript described above make this an
object model language. In JavaScript, the object types are
defined by properties and methods. Properties of Objects
are used to access the data values contained in an object.
You can make use of the properties of JavaScript objects for
editing as well as reading depending on the object’s
nature. That is, if you want to carry out functions on the
object, this is achieved by using methods that make use of
the object’s properties. These are some of the features
that give JavaScript an ability to handle simple as well as
complex tasks. This way, JavaScript has remained as the
most popular programming language for a long time. It is
also a good language for web designers who want to learn
computer programming as it supports object oriented as
well as function concepts and to use it, you just need a
browser and a text editor.
P a g e | 38
Applications of
JavaScript
Developing Multimedia Applications
The users can use JavaScript to add multimedia
elements. With JavaScript you can show, hide, change,
resize images and create images rollovers. You can
create scrolling text across the status bar, thus making
multimedia applications more interactive.
Components of
JavaScript
OPERATORS
JavaScript operators can be used to perform several
operators such as:
Arithmetic Operators
Comparison Operators
Logical Operators
Relational Operators
Assignment Operators
Conditional Operators
String
A string consists of sequence of one or more characters
that may consist of letters or numbers.
DATATYPES
A data type is a classification of the type of data that a
variable or object can hold. Data type is an important
factor in virtually all computer programming languages,
including visual basic, C#, C/C++ and JavaScript. When
programmers create computer applications, both
desktop and web-based, data types must be referenced
P a g e | 42
OBJECTS
JavaScript object is a non-primitive data-type that
allows you to store multiple collections of data. They
are simply collections of name-value pairs. The ‘name’
part is a JavaScript string, while the value can be any
JavaScript value including more objects. Here an object
name is defined.
// object creation
const person = {
name: 'John',
age: 20
};
[Link](type of person);
ARRAYS
JavaScript Array is a single variable that is used to store
elements of different data types. They work somewhat
similar as objects but they have a property called
‘length’. The length (size) of the array is always one
more than the highest index in the array. One of some
ways of creating arrays is as follows:
const chocolates = [];
chocolates[0]= "Dairy Milk";
chocolates [1]= "Kit-Kat";
chocolates [2]= "Snickers";
P a g e | 43
METHODS
Arrays and strings come with a number of
methods. Some are listed below-
1. [Link]() in JavaScript is used to print any kind
of variables defined before in it .
FUNCTIONS
Functions are a set of statements that performs a task
or calculates a value.
For Instance:
let x = myFunction(2, 3);
[Link]("demo").innerHTML = x;
function myFunction(a, b) {
return a + b;
P a g e | 45
EVENTS
The objects in web pages are organised in a
hierarchical structure. All objects have properties and
methods. In addition, some objects also have ‘events’.
Events are usually user actions that are associated with
an object. The ‘event handler’ is a command that is
used to specify actions in response to an event. Some
of the most commonly used vents are listed below:
onLoad - occurs when a page loads in a browser.
onUnload - occurs just before the user exits a
page.
onMouseOver - occurs when you point to an
object.
onMouseOut - occurs when you point away from
an object.
onSubmit - occurs when you submit a form.
onClick - occurs when an object is clicked.
P a g e | 46
Programming using
JavaScript
P a g e | 47
<head>
<script>
function myFunction()
</head>
<body>
<script>
[Link](myFunction());
</script>
</body>
</html>
P a g e | 48
<head>
<button onclick="myFunction()">try it
</button>
<p id="demo">
</p>
<script>
function myFunction()
else
[Link]("demo").innerHTML=x;
} </script>
</body>
</html>
P a g e | 50
P a g e | 51