
Banner
Components User's Guide
55
How to Insert a Banner Component
Follow the instructions below to insert a Banner component, either in Dreamweaver, or
manually using your HTML editor.
Dreamweaver
1
In Dreamweaver, place the insertion point where you want to insert the component.
2
Click Window | Objects to display the Objects palette.
3
Select the Serena Collage Design Components palette.
4
Click the
Insert Banner
button .
5
Complete the options on the Insert Banner dialog box.
Choose
Image
or
Text
from the
Banner Type
list.
If you chose
Image
, enter the image name and location in the
Banner Image
field, or browse to select it.
6
Click
OK
. The Banner component code is added to the file, and the image appears.
By default, when you insert a Banner component in Dreamweaver, the Banner will
display the name of the file to which you added the component. On an image Banner,
this text will be flattened onto the image, and is defined by the following attribute for
the
<img>
tag:
text="$node.name"
For example:
<img src="image.gif" border=0 text="$node.name">
On a text banner, this default text is defined by the following line:
<node:active>$node.name</node:active>
7
Do one of the following:
To replace the default text with your own text, find the
$node.name
string and
replace it with your own text. For example:
text="
Banner Name
"
or
<node:active>
Banner Name
</node:active>
Or, if you inserted an image banner and don't want any text to appear, simply
delete the
text
attribute from the
<img>
tag.
See the next section for diagrams of the banner component code.
Kommentare zu diesen Handbüchern