dreamweaver| Tips
In the process of developing and building a website, perhaps we will encounter such a situation, when our site has been carried out a considerable part, but found that some details need to be modified. At this time can not completely rely on manual to change, how to do? The use of find substitution in Dreamwaver can help implement these modifications.
Dreamwaver's Find-and-replace function is so powerful that it can even control the lookup process with an exact query language in its find-and-Replace dialog box. The shortcut key that we call the Find dialog box in Dreamwaver is "ctrl+h", the function of each input box is that the top "find" item is used to indicate the scope of the lookup, with 3 options, the first item to find in the current file, and the second to find it in the current site, The third item is to find in the specified folder, if we select this item, click on the Folder button on the right to specify the folder; The following "Find" item is used to select the type of lookup, if "text" means the lookup type is text (non-HTML code), and the other items are found in HTML code in turn, Advanced text lookup, search with tag, enter what you want to find in the right input box, and the following "replace" refers to what you want to replace.
Let's give an example of how to use the lookup feature. Suppose we want to replace the "dreamwaver" in the body text with "Dreamwaver", and if we only use "text" to find, we will replace the "Dreamwaver" in the < title>, we do not want this. So we used "advanced text lookup", the search criteria ("+", "-" button right) set to "Inside Tag" and "font", meaning to find the font label inside the text "Dreamwaver", and then replace it with "dreamwaver." One point to note is that the lookup level option must be selected as "Match case", which means that you must match the lookup condition exactly, otherwise the capitalization difference in the text will be ignored.
Once set, click "Replace All", find the replacement process begins, replace all the places that are replaced will be displayed in the replacement information list, the small green dots in front of the file indicate the replacement success.
How do you implement a lookup replacement that contains tag? Suppose all the pictures in our site have the "alt" attribute (only the background and individual supplementary angle don't set this property), but because do not pay attention to the page to set the picture "Border" property value of "0", individual pictures in the browser when the border and affect the browsing effect, so to all the set "alt The value of the picture's "Border" value set to "0", and in a lot of pictures of the case we can not change one by one, then if the use of Dreamwaver contains tag to find replacement function, can be very simple to solve the problem.
We first select the folder, and then set the included in the IMG tag, with the "alt" attribute and the "Alt=any value" as the lookup condition, and then set "Action" to "set Attribute", "Border", "0", The meaning of this setting is to set the "Border" property of the eligible picture to "0" and click the "Replace All" button. Soon, the lookup replacement is complete, and the picture attributes are modified exactly as they are.
What you need to be reminded is that when you make a lookup substitution, the file being manipulated is not in the edited state, or there may be a problem with the replacement error.