DHTML Lab - DHTML Diner - Element Page Coordinates, Part 3 | 7 | WebReference

DHTML Lab - DHTML Diner - Element Page Coordinates, Part 3 | 7


Determining Element Page Coordinates, Part 3
NS6+, Mozilla and TABLEs

FRAME and RULES in Gecko

This page hosts a tool that allows us to change the BORDER, FRAME and RULES attributes of a table and view the results in-page.

The FRAME and RULES attributes were described in detail in Part 2.

Choose a value from any of the three SELECT elements below. The table below will change to reflect your choices. The HTML to the right of the table will also change.

 

Below the SELECT elements, you can see what values the JavaScript properties border, frame and rules will return for your choices.

And, naturally, you should move the blue square. The functions used to position the square are the ones developed on the previous page. They won't always get it right!



Set Attributes:

Reflected in JavaScript as: