c-- styles for logos and headline links do not modify internet, red, or black styles -->

Intranet Journal   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   Intranet Journal Subjects
Search Earthweb

Privacy Policy



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet commerce
Be a Commerce Partner
















 

[ Home | Discussion Forum | How Do I... | Lotus Notes Intranets | Microsoft SharePoint | Products | Shopping  ]

free news!

Dynamic Properties in Dynamic HTML (DHTML)



Tutorial TOC

  1. Introduction
  2. Implementing Dynamic Properties
  3. Creating expressions and formulas
  4. The setting expressions
  5. The getExpression() method
  6. The removeExpression() method
  7. Summary

Creating expressions and formulas

As we mentioned earlier, Dynamic Properties are really properties or formulas that are evaluated by the browser automatically. When a referenced property changes the value for the first property will be updated as well. But, how does one compose these formulas or expressions. It's pretty simple, take a look at the following steps:

  • Determine which property you want to be dynamic; this is the Dynamic Property.
  • Determine which property or value you will need to insert as the value of the Dynamic Property.
  • Assign this value to the Dynamic Property with the setExpression() method or the expression() method.

let's examine each set in more detail, starting from the first one. In IE 5, every read/write property, except the cssText property is settable with the Dynamic Properties. So you're really given full freedom to decide which property you want to make dynamic. There. s absolutely nothing stopping you from having an element's position dependent upon the position of the mouse cursor.

Again, with the determination of properties that can be used as values in Dynamic Properties, the answer is simple. If a property is readable or writable, then It's a good candidate for Dynamic Properties.

The setting expressions >

< Previous: Implementing Dynamic Properties

[print version of this page]

Of Interest
· An Introduction to DHTML

· Express Yourself