Sponsored Links


Other Topics
Sponsored Links



Quote of the Day

"It has become appallingly obvious that our technology has exceeded our humanity."

Albert Einstein

FEATURED
INTERNET
PRODUCTS
 
Fast Domain Riches
 
Domain Traffic Income Domain Investing...
 
Unlock The Money Making Secrets With Domain...
 
Domain Auction Profit
 
Beyond Domaining - Rapid Domain Name Development...
 




 


Google


Warning: fopen(stopka/index.php) [function.fopen]: failed to open stream: No such file or directory in /stopka.php on line 117

Warning: fopen(stopka/6655d922aa2c1bbb44b556c10262be35.txt) [function.fopen]: failed to open stream: No such file or directory in /stopka.php on line 117


 
Featured Javascript Articles

How To Retain More Of Your Visitors
Did you know that most of your visitors probably never go beyond your homepage? And a lot of them leave within ten seconds of hitting your homepage, NEVER to return again?These are wasted visitors, and you must do everything possible to reduce the waste, ...

Mini E-Commerce Software Faq
WHAT IS E-COMMERCE SOFTWARE E-Commerce Software allows an online merchant to quickly, efficiently, and professionally process online sales. Ease of the software's use and its application depends upon the software's features, but with technology ...

Optimizing Pages with JavaScript and Style Sheets for Search Engines
BackgroundSearch Engines use a number of criteria to decide what a given web page is all about. These criteria, which can be different from Search Engine to Search Engine, and which may even change over time, all aim at deciding how "relevant" a page is ...





Dhtml-Introduction
 
Think of DHTML as not a singular technology but a combination of three
existing technologies glued together by the Document Object Model (DOM):

1. HTML - For creating text and image links and other page elements.

2. CSS - Style Sheets for further formatting of text and html plus other
added features such as positioning and layering content.

3. JavaScript - The programming language that allows you to accesses and
dynamically control the individual properties of both HTML and Style Sheets.

The way JavaScript accesses the properties of an HTML document is through
the Document Object Model (DOM). The job of the DOM is to expose all the
attributes of HTML and Style sheets to JavaScript control. All you need to
know about the DOM is what JavaScript commands it accepts. Not that easy,
as different browsers have their slightly different versions of the DOM, so
they access HTML properties differently as well as display them differently.

So how do you locate an HTML element on a page and change its property?
This is the job of JavaScript. Obviously, I cant into all the details of
JavaScript or the DOM, but here is an example of how JavaScript can change a
visibility of a style sheet layer in both browsers.

Note: That every piece of HTML has a location much like a directory in a
phone book. When finding that piece of HTML you have to go through the same
hierarchy process of searching for a name in the phone book such as

(state) Washington -> (City) Seattle -> (Listings) j -> (Name) Jessica

In JavaScript, a reference to this would be equivalent to

washington.seattle.j.jessica

Now Jessica may have additional information such as her address and phone
number, so the JavaScript reference would be written this way.

washington.seattle.j.jessica.address

or

washington.seattle.j.jessica.phone

Lets transcribe the above metaphor to a DHTML document that contains a
layer [myLayer] with style attributes
[top,left,width,height,z-index,visibility,etc] and the layer contains a bit
of text "myText" (Note that the visibility attribute is set to hidden)

100px; height: 100px; z-index: 3; visibility: hidden;">
myText


In Netscape the address to the DIV layer "myLayer" is

document.myLayer

in Explorer it is

document.all.myLayer.style

The W3C way of identifying the address is

document.GetElementById('myLayer').style

To access the properties such as visibility under "myLayer" you would use
these addresses.

Netscape

document.myLayer.visibility

Explorer

document.all.myLayer.style.visibility

W3C

document.getElementById('myLayer').style.visibility

To change the visibility of this layer you would assign a value to your
JavaScript address.

Netscape

document.myLayer.visibility = "visible";

Explorer

document.all.myLayer.style.visibility = "visible";

W3C

document.getElementById('myLayer').style.visibility="visible";

Now the previously hidden layer is now visible. This is essentially how
DHTML works, but understand there are hundreds and hundreds of attribute
properties for text, images, documents and windows. Not all these
properties are supported in both browser and sometime accessing a property
requires a few more hurdles, but if you stick to the common denominator
properties both browser use then life it a bit easier. I recommend the
excellent DHTML reference book Dynamic HTML - The Definitive Guide by Danny
Goodman (O'Riley Books) It lists all of the DHMTL properties and their
cross browser compatibilities.

About the Author
Eddie Traversa
DHTML Nirvana http://nirvana.media3.net/ is a site
dedicated to exploring the possibilites of DHTML. It hosts free graphics,
dhtml templates and tutorials. Some of the tutorials emphasis is on
Flash/DHTML integration.

Javascript News



Google Now Searches JavaScript
iProgrammer
A big problem is how search bots deal with dynamic content - and JavaScript/Ajax is a tough one to solve. For example, you could have a page that never used a URL to move to another page but simply refreshed its contents either every so often or when ...


WSO2 to Present Technical Webinar on Using Jaggery as a Server-Side JavaScript ...
San Francisco Chronicle (press release)
WSO2 webinar on May 31, explores how Jaggery provides an intuitive pure JavaScript server-side scripting engine for flexible Web application development and deployment Palo Alto, CA (PRWEB) May 24, 2012 Developing a Web application today is like ...

and more »

The Virginian-Pilot

Teen admits to Chesapeake attack on ex-NFL player
The Virginian-Pilot
In order to get the best experience with our full-size images, you should enable JavaScript in your browser. Ed Beard, a South Norfolk native and high school star, played for the San Francisco 49ers. Ed Beard, 71, suffered a concussion, ...

and more »

Sydney Morning Herald

Billy Slater and Storm show Broncos why they are still No.1
Herald Sun
Video Video Video Image Please install the latest Flash player [To view Flash please enable JavaScript and Flash.] Please install the latest Flash player [To view Flash please enable JavaScript and Flash.] Please install the latest Flash player [To ...
Anthony Griffin laments poor performance as Storm thrash Broncos 34-10 at AAMI ...Courier Mail

all 60 news articles »

Park of Animatronic Dinosaurs Opening in NJ
ABC News
Javascript is not enabled on your browser. Please enable javascript to use the community features on this page. If your browser does not support javascript, please visit our browser upgrade page for a list of supported web browsers.

and more »