The Library is a Dreamweaver file that specifically contains a collection of your own content or copies of the content you can place on your website. The content in a library is called library item. Items that you can store in the library include images, tables, audio and files created with Adobe Flash. You can automatically update all pages using the library item whenever you edit that item.
For example, suppose you are building a large website for a company that wants a slogan to appear on every page. You can create a library item containing that slogan and use that library item on every page. If the slogan changes, you can change the library item and automatically update every page that uses it.
Adobe Dreamweaver stores the library items in the Library folder at the local root directory for each page. Each page has its own library.
You can create a library item from any element in the body of the document, including text, tables, forms, Java applications, plug-ins, ActiveX elements, navigation bars and images. .
For linked items like images, the library only stores one reference to that item. The original file must remain in the specified location for the library item to work correctly.
However, it is still useful to store an image in a library item. For example, you can store the complete img tag in a library item, which will allow you to easily change the image's alt text or even its src attribute, across the entire site. (However, do not use this technique to change the width and height attributes of the image, unless you also use the image editor to change the actual size of the image).
Note:
If the library item contains links, the links may not work in the new site. In addition, the image in a library item cannot be copied to the new site.
When you use a library item, Dreamweaver will insert a link to it, instead of the item itself, in the web page. That is, Dreamweaver inserts a copy of the HTML source code for the item into the document and adds an HTML comment containing a reference to the original, external item. This is an external reference that allows automatic updates to take place.

When you create a library item that includes an element with Dreamweaver behavior associated with it, Dreamweaver will copy that element and its event handler (the attribute that determines which event triggers the action. , such as onClick, onLoad or onMouseOver, and what action is called when the event occurs) go to the library item file. Dreamweaver does not copy the JavaScript functions linked to the library item. Instead, when you insert library items into a document, Dreamweaver will automatically insert the appropriate JavaScript functions into the first part of the document (if they are not already there).
Note:
If you write JavaScript code (that is, if you create it without using Dreamweaver behavior), you can make it become part of a library item, if you use Call JavaScript action to execute code. If you do not use Dreamweaver behavior to execute code, the code will not be retained as part of the library item.
There are special requirements to modify the behavior of items in the library. Items in the library cannot contain style sheets, because the code for those elements is part of the header.
Work with the library item in Adobe Dreamweaver CS6
Create a library item of choice
Dreamweaver saves each library item as a separate file (with the .lbi file extension) in the Library folder of the local root directory for the site.
Create an empty library item
Insert a library item into the document
When you add a library item to a page, the actual content is inserted into the document along with a reference to the library item.
Note:
To insert content for an item in the library without including a reference to the item in the document, press Control (Windows) or Option (Mac), and drag an item out of the Assets control panel . If you insert an item in this way, you can edit the item in the document, but the document will not be updated when you update the page using the library item.
Edit the library item and update the document
When you edit a library item, you can update all documents using that item. If you choose not to update, the documents are still linked to the library item and you can update them later.
You can rename items to disconnect them from a document or template, delete items from the site's library and recreate a missing library item.
Edit the library item

Update the document to use the current version of all library items
Select Tools> Library> Update Current Page .
Update the entire website or all documents using a specific library item.
1. Select Tools> Library> Update Pages .
2. In the Look In menu, specify the content to update:
3. Ensure that the Library Items are selected in the Update option .
Note:
To update templates at once, select Template.
4. Click Start.
Dreamweaver updates files as indicated. If you have selected the Show Log option , Dreamweaver will create a report indicating whether the file has been successfully updated, along with other information.
Rename the library item
Delete the item library from a library
When you delete a library item, Dreamweaver will delete it from the library but not change the content of any document that uses that item.
Note:
If you delete the library item, you cannot use the Undo button to retrieve that item. However, you can recreate it.
Recreate a missing or deleted library item
Customize highlight of library items
You can customize the highlight colors of the library items and display or hide these highlights by setting Highlighting preferences.
Change the highlight color of the library items
Display or hide highlights in the Document window
To display the highlight, select View> Design View Options> Visual Aids> Invisible Elements . To hide the highlight, uncheck Invisible Elements.
Edit the properties of a library item
You can use Property and open a library item to edit, split a selected library item from its source file or overwrite an item with the currently selected library item.
Make the library item editable in the document
If you have added the library item to your document and you want to edit the specific item for that page, you must disconnect the link between the item in the document and the library. Once you have made a specific case in the document editable, it will not be updated when the library item changes.
Edit an behavior in the library item
To edit the behavior in a library item, you must first insert the item into the document, then make the item editable in that document. After making the changes, you can re-create the library item, replace the item in the library with the edited item from your document.
Hope you are succesful.
See more:
ncG1vNJzZmismaXArq3KnmWcp51kxLC%2BymauoqyYYsGpsYyloJuqkafGbrXTnqRmoZ5irqW7wZ5knaqVlrq4scCvnKtlk6iD