Previous page Next page Bottom Top One level up Home

DHTML

Webpages concerning "DHTML"

Free HTML,XHTML,CSS,JavaScript,DHTML,XML,DOM,XSLT,ASP,ADO,SQL tutorial and web building primer from W3Schools
http://www.w3schools.com/dhtml/
Keywords:
xml, tutorial, html, dhtml, css, xsl, xhtml, javascript, asp, ado, vbscript, dom, sql, colors, soap, php, authoring, programming, training, learning, beginner's guide, primer, lessons, school, howto, reference, examples, samples, source code, tags, demos, tips, links, FAQ, tag list, forms, frames, color table, w3c, cascading style sheets, active server pages, dynamic html, internet, database, ...

http://www.w3schools.com/dhtml/

Click here for Dynamicdrive.com, a comprehensive DHTML site featuring DHTML scripts, tutorials, and more.
http://www.dynamicdrive.com/
Keywords:
DHTML, dhtml, dhtml tutorial, JavaScript, free, Java

http://www.dynamicdrive.com/

Dynamic HTML Lab offers biweekly dhtml tutorials and more. Learn how to create low bandwidth animations, databases, presentations and more using style sheets, layers, positioning, and JavaScript.
http://www.webreference.com/dhtml/
Keywords:
dhtml, dynamic, html, tutorial, javascript, programming, tool, computer, software, internet, explorer, java, script, communicator, database, animation, jscript, layers, cascading, stylesheet, design, CSS, webmaster, browser, authoring, development, vbscript, designer, table, learning, dhtml, hierarchal, menu, free, example, library, demo, editor, sample, code, parser, guru, peter, belesis, ...

http://www.webreference.com/dhtml/

DHTML scripts, tools and tutorials
http://www.webmastertoolscentral.com/directory/programming/dhtml/index.html
Keywords:
dhtml, dynamic, tools, html, free, scripts, tutorials

http://www.webmastertoolscentral.com/directory/programming/dhtml/index.html

Help building the largest human-edited directory of the web
Suggest URL - Open Directory Project - Become an editor
directopedia.org uses links and structure from dmoz Open Directory Project.
The contents has been generating using technology developed by scientec.

Wikipedia-Article "DHTML"

HTML

Cascading Style Sheets
Character encodings
Layout engine comparison
Dynamic HTML
Font family
HTML editor
HTML element
HTML scripting
Unicode and HTML
Web colors
W3C
XHTML

Dynamic HTML or DHTML is a method of creating interactive web sites by using a combination of static markup language HTML, a client-side scripting language (such as JavaScript), and the presentation definition language Cascading Style Sheets and the Document Object Model.

It may be used to create applications in a web browser: for example to ease navigation, to create interactive forms or to create interactive exercises to use in e-learning applications such as WebCT. Because it can be used to dynamically move elements around the screen, DHTML can also be used as a tool for creating browser based videogames.

DHTML applications that are entirely self-contained in the browser, without server-side support such as a database, are sometimes referred to as Single Page Applications, or SPA. See Comparison of layout engines (DOM) for a detailed list of the API available in each browser to use in DHTML applications.

Competing techniques include Macromedia Flash for animation and applets.

Some disadvantages of DHTML are that it is difficult to develop and debug due to varying degrees of support among web browsers of the aforementioned technologies and that the variety of screen sizes means the end look can only be fine-tuned on a limited number of browser and screen-size combinations. Development for recent browsers, such as Internet Explorer 5.0+, Netscape 6.0+, and Opera 7.0+, is aided by a shared Document Object Model.

Contents

Structure of a web page

Typically a web page using DHTML is set up the following way

<html>
 <head>
  <title>DHTML example</title> 
  <script type="text/javascript"> 
   function init() {
    myObj = document.getElementById("navigation");
    // .... more code 
   }
   window.onload=init;
  </script> 
 </head>
 <body>
  <div id="navigation"></div>
 </body>
</html>

Often the JavaScript code is stored in an external file, this is done by linking the file which contains the JavaScript:

<script type="text/javascript" src="/onTEAM/wiki/dummy.png"></script>

See also DOM Events

Example: Displaying an additional block of text

The following code illustrates an often used function. An additional part of a web page will only be displayed if the user requests it. In e-learning, such a function could be used to display additional hints or an answer the student initially should not see.

<html>
 <head>
  <title>Test</title>
  <style type="text/css">
   h2 {background-color: lightblue; width: 100%}
   a {font-size: larger; background-color: goldenrod} 
   a:hover {background-color: gold}
   #example1 {display: none; margin: 3%; padding: 4%; background-color: limegreen}
  </style> 
  <script type="text/javascript">
  <!--
   function changeDisplayState (id) {
    e=document.getElementById(id);
    if (e.style.display == 'none' || e.style.display =="") {
     e.style.display = 'block';
     showhide.innerHTML = 'Hide example';
    } else {
     e.style.display = 'none';
     showhide.innerHTML = 'Show example';
    }
   }
  //-->
  </script>
 </head>
 <body>
  <h2>How to use a DOM function</h2>
  <a id="showhide" href="javascript:changeDisplayState('example1')">Show example</a>
  <div id="example1">This is the example. (Additional information, which
   is only displayed on request)..............</div>
  <p>The general text continues ....<p>
 </body>
</html>

A Presentation Application

S5 is a presentation application of DHTML which works in modern browsers (IE 6 included): A single XHTML file contains a slideshow which may be viewed in projector mode slide by slide (browser window set to full screen), as a single web document or printed out as a handout. With DHTML a navigation is built dynamically. Simple animations are possible. Formatting is done with CSS.

External links

  • QuirksMode, a comprehensive site with test examples and instructions on how to write DHTML code which runs on several browsers
  • Mahjongg Solitaire, a web game application coded in dynamic HTML
  • DHTML Lemmings, a classic game
  • DHTML RPG, a graphic DRPG, Haru Ki
  • DHTML Central, a web site with a DHTML library and several javascript components for menus, trees, and a library for simplifying cross-browser DHTML programming.
  • DHTML demos
  • DHTML games, a collection of DHTML coded action games that provide a good example of what is possible with DHTML in modern browsers. Site includes production notes.
  • HTML & DHTML Reference on MSDN
This article is based on the article "DHTML" from Wikipedia - the free encyclopedia created and edited by online user community. This article is distributed under the terms of GNU Free Documentation License. Here you find the list of authors of this article. The article can only edited within Wikipedia. Edit this article in Wikipedia.