[thelist] Tweaking Dreamweaver code (was Homesite vs Dreamweaver)
scott.brady at homeqonline.com
scott.brady at homeqonline.com
Thu Mar 8 09:19:03 CST 2001
David wrote:
> The other frequent one is removing the space
> from a spacer gif's "alt" attribute. Since DW doesn't insert an empty "alt"
> by default (alt=""), it's necessary to at least type in a [space] character,
> then go back in and delete those spaces.
<tip type="Dreamweaver">
Having Dreamweaver add an empty alt tag in images by default is a preference you
can set in DW (at least in DW2, since I have yet to upgrade to a newer version).
Go to the Configuration\Ojbects\Common\ subfolder of your Dreamweaver folder.
In there, you will find a file called "Image.htm", which is basically a
javascript that tells DW how to insert an image. By default, I believe it is
this:
return '<img src="' + escape(browseForFileURL("select", "", true)) + '">';
If you change it to this:
return '<img src="' + escape(browseForFileURL("select", "", true)) + '"
alt="">';
It should now add in the empty alt tag by default.
</tip>
Scott
More information about the thelist
mailing list