Macromedia dreamweaver 8-using dreamweaver User Manual
Making HTML attributes dynamic
711
4.
Select a content source from the list.
The content source should be a recordset containing the paths to your image
files. Depending on the file structure of your site, the paths can be absolute, document
relative, or root relative.
files. Depending on the file structure of your site, the paths can be absolute, document
relative, or root relative.
If no recordsets appear in the list, or if the available recordsets don’t meet your needs,
define a new recordset. For instructions, see
define a new recordset. For instructions, see
5.
Click OK.
Making HTML attributes dynamic
You can dynamically change the appearance of a page by binding HTML attributes to data.
For example, you can change the background image of a table by binding the table’s
For example, you can change the background image of a table by binding the table’s
background
attribute to a field in a recordset.
You can bind HTML attributes with the Bindings panel or with the Property inspector.
To make HTML attributes dynamic with the Bindings panel:
1.
Open the Bindings panel by choosing Window > Bindings.
2.
Make sure the Bindings panel lists the data source you want to use.
The content source should contain data that’s appropriate for the HTML attribute you
want to bind. If no sources of content appear in the list, or if the available content sources
don’t meet your needs, click the Plus (+) button to define a new data source. For
instructions, see
want to bind. If no sources of content appear in the list, or if the available content sources
don’t meet your needs, click the Plus (+) button to define a new data source. For
instructions, see
3.
In Design view, select an HTML object.
For example, to select an HTML table, click inside the table and click the
<table>
tag in
the the tag selector on the bottom-left of the Document window.
4.
In the Bindings panel, select a content source from your list.
5.
In the Bind To box, select an HTML attribute from the pop-up menu.
6.
Click Bind.
The next time the page runs on the application server, the value of the data source will be
assigned to the HTML attribute.
assigned to the HTML attribute.
NO
TE
Dreamweaver does not currently support binary images stored in a database.