Gateway Educational and Welfare Society Regd. with Govt. of Punjab
Set Home Page Favorite   Home About Society Contact

Gateway Education and Welfare Society (Regd.)
(An ISO 9001 Certified Organisation)

  * More than 2500 students
  * 10 GLORIOUS Years
  * Over 100 Educational Camps & Classes
* Rural Areas

Gateway Education and Welfare Society (Regd.),  Reg. No. DIC/DRA/1218 of 2002--

 
New Page 1
  PRIDE OF GATEWAY
 
Amritpal Singh 
  Gateway Institute
Courses
Admission Form
Industrial Training
Certification Criteria
Current Staff
Certificate Form
Project CAMPS Report...
Branch Offices
View Certificate Copy
Presentation
Project Development
  Sikkim Manipaula Uni.
About University
Courses
  Hartron Workstation
HARTRON Courses
Admission Criteria

  MANONMANIAM SUNDARANAR UNIVERSITY

MSU Courses
MSU Date-Sheet (Nov-2010)
  Articals
Sangrur
Education In Sangrur
Computer Literacy
Directory Of Sangrur
Punjab (Links and General Info.)
Engineering Colleges in Punjab
Govt. Jobs in Punjab - CDAC Mohali

Google Search

The Web gatewaysol.com

SMU

 
Ms-Word

DHTML

DHTML is NOT a language.

DHTML is a TERM describing the art of making dynamic and interactive web pages.

DHTML combines HTML, JavaScript, DOM, and CSS.

DHTML is the art of combining HTML, JavaScript, DOM, and CSS.

What you should already know

Before you continue you should have a basic understanding of the following:

  • HTML
  • JavaScript
  • CSS

DHTML is Not a Language

DHTML stands for Dynamic HTML.

DHTML is NOT a language or a web standard.

DHTML is a TERM used to describe the technologies used to make web pages dynamic and interactive.

To most people DHTML means the combination of HTML, JavaScript, DOM, and CSS.

According to the World Wide Web Consortium (W3C):
"Dynamic HTML is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated."

DHTML Technologies

Below is a listing of DHTML technologies.

HTML 4

The W3C HTML 4 standard has rich support for dynamic content:

  • HTML supports JavaScript
  • HTML supports the Document Object Model (DOM)
  • HTML supports HTML Events
  • HTML supports Cascading Style Sheets (CSS)

DHTML is about using these features to create dynamic and interactive web pages.

JavaScript

JavaScript is the scripting standard for HTML.

DHTML is about using JavaScript to control, access and manipulate HTML elements.

HTML DOM

The HTML DOM is the W3C standard Document Object Model for HTML.

The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate them.

DHTML is about using the DOM to access and manipulate HTML elements.

HTML Events

The W3C HTML Event Model is a part of the HTML DOM.

It defines a standard way to handle HTML events.

DHTML is about creating web pages that reacts to (user)events.

CSS

CSS is the W3C standard style and layout model for HTML.

CSS allows web developers to control the style and layout of web pages.

HTML 4 allows dynamic changes to CSS.

DHTML is about using JavaScript and DOM to change the style and positioning of HTML elements.

JavaScript Alone
 

If you have studied JavaScript, you already know that the statement:

document.write()

can be used to display dynamic content to a web page.

Example

Using JavaScript to display the current date:

<html>
<body>

<script type="text/javascript">
document.write(Date());
</script>

</body>
</html>

JavaScript and the HTML DOM

With HTML 4, JavaScript can also be used to change the inner content and attributes of HTML elements dynamically.

To change the content of an HTML element use:

document.getElementById(id).innerHTML=new HTML

To change the attribute of an HTML element use:

document.getElementById(id).attribute=new value

JavaScript and HTML Events

New to HTML 4 is the ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element.

To execute code when a user clicks on an element, use the following event attribute:

onclick=JavaScript

JavaScript and CSS

With HTML 4, JavaScript can also be used to change the style of HTML elements.

To change the style of an HTML element use:

document.getElementById(id).style.property=new style

JavaScript can create dynamic HTML content:

Date: Fri Apr 03 23:16:48 2009

JavaScript Alone
 

If you have studied JavaScript, you already know that the statement:

document.write()

can be used to display dynamic content to a web page.

Example

Using JavaScript to display the current date:

<html>
<body>

<script type="text/javascript">
document.write(Date());
</script>

</body>
</html>

What is the HTML DOM?

The HTML DOM is:

  • A standard object model for HTML
  • A standard programming interface for HTML
  • Platform- and language-independent
  • A W3C standard

The HTML DOM defines the objects and properties of all HTML elements, and the methods (interface) to access them.

In other words:

The HTML DOM is a standard for how to get, change, add, or delete HTML elements.

Using the HTML DOM to Change an HTML Element

The HTML DOM can be used to change the content of an HTML element:

<html>
<body>

<h1 id="header">Old Header</h1>

<script type="text/javascript">
document.getElementById("header").innerHTML="New Header";
</script>

</body>
</html>

HTML output:

New Header

Example explained:

  • The HTML document contains a header with id="header"
  • The DOM is used to get the element with id="header"
  • A JavaScript is used to change the HTML content (innerHTML)

Using the HTML DOM to Change an HTML Attribute

The HTML DOM can be used to change the attribute of an HTML element:

<html>
<body>

<img id="image" src="smiley.gif">

<script type="text/javascript">
document.getElementById("image").src="landscape.jpg";
</script>

</body>
</html>

Event handlers

An event handler allows you to execute code when an event occurs.

Events are generated by the browser when the user clicks an element, when the page loads, when a form is submitted, etc.

Example

A header changes when the user clicks it:

<h1 onclick="this.innerHTML='Ooops!'">Click on this text</h1>

You can also add a script in the head section of the page and then call the function from the event handler:

<html>
<head>
<script type="text/javascript">
function changetext(id)
{
id.innerHTML="Ooops!";
}
</script>
</head>
<body>
<h1 onclick="changetext(this)">Click on this text</h1>
</body>
</html>

HTML 4.0 Event Handlers

Event Occurs when...
onabort a user aborts page loading
onblur a user leaves an object
onchange a user changes the value of an object
onclick a user clicks on an object
ondblclick a user double-clicks on an object
onfocus a user makes an object active
onkeydown a keyboard key is on its way down
onkeypress a keyboard key is pressed
onkeyup a keyboard key is released
onload a page is finished loading
onmousedown a user presses a mouse-button
onmousemove a cursor moves on an object
onmouseover a cursor moves over an object
onmouseout a cursor moves off an object
onmouseup a user releases a mouse-button
onreset a user resets a form
onselect a user selects content on a page
onsubmit a user submits a form
onunload a user closes a page

 

New Page 1

Glimpses Of Institute

LOGIN USER

User
Password

[  Notice Board  ]

Date :2011-11-26 11:35:04
SKILL DEVELOPMENT PROGRAM " COMPUTER ACCOUNTS- TALLY " LAST DATE OF REGISTRATION :- 08.12.2011 CAMP STARTS FROM :- 12.12.2011
Date :2011-04-15 14:32:36
Vist at Gateway to see Result of Hartron Exam held on 12/03/2011

Society Events Gallery

Society In News

New Page 2
Gateway Solutions is a Computer Institute in sangrur,punjab Run By Society to provide Quality and Career OrientedComputer Education To poor and Needy People.An ISO 9001-2008 certified institute
www.gatewaysol.com
Megastarshine.com :: young teen, beautiful Asian female and Indian male models. Browse free latest portfolio of aspiring kids & child models, fashion designers, professional photographers. Offer best commercial and fashion modeling agency, scout and job service.
www.megastarshine.com
keshavhcn.com : Keshav Health Care Networking Pvt. Ltd. :
www.keshavhcn.com
Tradedost.com : TradeDost is a visionary platform for all the Trades in all major Districts and Cities. Here you can Register your Business/ Occupation / Establishment For Growth in all over the region TradeDost.com is the most comprehensive online Yellowpages. You can promote your Business by advertising Here .....
www.tradedost.com
Valmikiresearch.com : This Web Site is Dedidcated to Whole Valmiki Samaaj.Valmiki Research is a mission started by Dr. Dev Singh "Advaiti" Dharam Guru,Saroach Nirdhesak, Bhartiya Valmiki Dharam Samaaj(Regd.)-Bhavadhs
www.valmikiresearch.com
PMRANetwork.com : Our mission is to provide the best quality products and to constantly improve, Innovate and  evolve to meet the growing needs of our customers.
www.cccsangrur.com
Home About Society Aims and Objects Contact OnLine Test Sitemap
Gateway Educational and Welfare Society
 is an NGO Regd. with Govt. Of Punjab to promote the skills of poor and needy youth of INDIA so that they may earn respectful living hood. Presently the area of functioning of Society is Sangrur Distt.

Copyright to Starshine India
All rights are Reserved
Designed and Programmed By Parmjeet Kaur, Amit Kumar