Dreamweaver's 20 great tips

Source: Internet
Author: User
Tags copy empty insert modify dreamweaver
dreamweaver| Tips 1 How to integrate Dreamweaver into IE browser?
The Dreamweaver installer adds an "Edit with Dreamweaver" command to the contextual selections, and we can also modify the Windows registry so that it integrates with IE. Like MS Word, Frontpage, and Notepad, call Dreamweaver to open the current page by using the IE Toolbar's edit button.
Change the last line of the following text to your own Dreamweaver installation path, save them as a *.reg file, and double-click it to add the information to the registry.
REGEDIT4
[Hkey_classes_root\.htm\openwithlist\dreamweaver]
[Hkey_classes_root\.htm\openwithlist\dreamweaver\shell]
[Hkey_classes_root\.htm\openwithlist\dreamweaver\shell\edit]
[Hkey_classes_root\.htm\openwithlist\dreamweaver\shell\edit\command]
@= "C:\Program files\macromedia\dreamweaver 3\dreamweaver.exe%1"
If you want to set the IE default editor, open IE's "Internet options" and specify it in the program label.

2 in order to use some scripts, often to the graphics or text with an empty link, but when you click on the empty linked object, will jump to the top of the page, how to avoid?
Because the browser thought it was linked to the same page, it couldn't find the defined bookmark (anchor) and stayed at the top of the page. Replace the "#" of the Empty link with "javascript:void (null)" To solve the problem.

3 The use of CSS, layers of time, in different browsers, sometimes even dislocation phenomenon, how to solve?
Dreamweaver does well in terms of compatibility with different browsers, but it does not mean that Web pages made with Dreamweaver are exactly the same as in IE and Netscape. In general, browsing the same Web page in a different browser is unlikely to be exactly the same, as the browsers of different manufacturers decide.
Generally try to keep the following questions in mind:
Do not mix the use of layers and table typesetting, if it is a parent-child relationship, such as the layer table, not within the scope of this principle;
Inline CSS is often problematic in Netscape Navigator, using a chained or inline type;
Sometimes you need to insert tables or transparent pictures in the empty layer to ensure the effect in Netscape Navigator. For layers with only a few pixel widths or heights, use a picture instead;
Avoid using typesetting attributes that are not recommended by the organization and use CSS instead.

4 Why copy text from other documents to Dreamweaver, all the paragraphs will be squeezed into a group, and within the Dreamweaver with the format code?
Dreamweaver copy and paste text has two categories, the standard way to copy objects together with the object's properties, the contents of the Clipboard as HTML code, another way to copy or paste only text, copy ignore HTML format, sticky paste when the HTML code as text pasted. Press one of the "Shift" keys to ctrl+shift+c/ctrl+shift+v the latter way.

5 Why the Web page with IE browsing normal, with Netscape Navigator but not meet the requirements or even error, and in the Dreamweaver document window is always modified bad?
Please check the code. Because some parts of the page are repeatedly modified with the WYSIWYG editor, some extra code, such as unwanted links, which is not visible in the Dreamweaver document window, is sometimes left behind, IE ignores them. But Netscape Navigator more stringent code requirements, the preview of the incredible phenomenon.

6 in Netscape Navigator, some bookmarks (anchor) do not work, some seem to disappear?
Netscape Navigator's bookmarks are case sensitive. In Navigator, bookmarks in multiple nested tables are lost, and bookmarks are placed outside the table.

7 Dreamweaver document window is covered with a variety of panels, in order to edit the document, had to be clawed out a gap, too tired, how is good?
A 800x600 resolution screen is a bit smaller for Dreamweaver, but even 1024x768 doesn't fit all the panels. The key is to organize well.
Close those panels that are temporarily unavailable in editing, and put the common panels together to save screen space;
Unless you want to use it now, turn off HTML Source Inspector, which occupies a considerable amount of system resources, excluding screen space.
Press F4 to hide all open panels, a glance at the full picture of the document, and then click on the display panel;
There is a "arrange floating palettes" command in the Windows menu that uses this command to place all open panels around the window and not overlap.
The use of shortcut keys and proficiency is a good way to improve efficiency.
When you add an object that is not visible, Dreamweaver adds the appropriate icon to the top of the page in the document window, and if there are too many icons, it may prevent editing. You can Press "Ctrl+shift+i" (Main Menu view| Invisible Elements) to hide and display them. You can also set the icon to not appear, but this is not recommended, because they can help select objects for editing.

8 The Head object panel can only add content, can you modify the contents of < head> tags in the document window?
OK. There is a very intuitive way to press "Ctrl+shift+w" (Main Menu view| Head Content), a line of icons appears under the main menu bar of the document window, and click on the icons to modify them.
9 How to select a table, a layer inside those very small, such as 1x1px pictures?
Click in the cell in the table, and then press the "Shift" key and move with the arrow keys to select it.
You can also select a table cell (hold down the CTRL key, click the corresponding cell with the mouse) or layer, and then in the HTML source Inspector panel Choose the < IMG src= in the highlighted code ... >, return to the document window, the picture is selected.

10 How to edit the name of a frame system (Title)?
Press "CTRL+F10" to open the "Frames" Panel, click on the Outermost box, press "Ctrl+j" (Main Menu modify| Page Properties).

11 How do I change the default event for "behaviors"?
The event settings file is placed in the "\configuration\behaviors\events\" folder under the Dreamweaver installation directory, for example, for more than 4.0 browsers, open the file "4.0 and later browsers.htm."
< A ondblclick= "onkeydown=" "onkeypress=" "onkeyup=" "onmousedown=" "onmouseout=" "onmouseover=" "onMouseUp=" ">
Move "*" in "" to "onmouseover=" and "" "to: < A onclick=" "ondblclick=" "onkeydown=" "onkeypress=" "onkeyup=" "onmousedown=" "on mouseout= "" onmouseup= "" >
Restart Dreamweaver, the default event of this class becomes "OnMouseOver". Other analogy.

12 when opening a page, open a small window at the same time, with Dreamweaver can be implemented?
Can, do not have to write a line of code. In the Behaviors panel, use the built-in Open Browser window script to set the page, window size, and properties. As shown in figure:


13 when inserting a table, there is always a space in the table cell (< td> </td>), how can we not let it produce?
This is Dreamweaver automatically generated, do not delete it. If there is nothing in the table cell, Netscape Navigator will not display the unit.

14 Template Document < head> tag, in addition to the Web page theme can not be edited, how can you add behaviors to the template based on the page?
Use the HTML Source Inspector panel to add an editable tag before "<!--#BeginEditable "Javascript"-->
< script language= "JavaScript" >
</script>
<!--#EndEditable-->

15 in cooperation in the development and management of the site, the use of Dreamweaver Registration/inspection system, the remote server for the site of the relevant files added a different access rights?
Check In/check out is a management mechanism used internally by Dreamweaver, regardless of the file's properties. "Check out" means that the file is being used by me and someone else cannot edit it; "Check in" means that the file can be check out and edited by another colleague, and the local file becomes read-only to prevent itself from changing its contents.
Dreamweaver implements the check In/check out feature by generating a corresponding ". Lck" file on both local and remote servers that are not displayed in the "Site" window and Dreamweaver are able to read these files, only for Dreamweaver Effect. No attributes are added to the file. If you use other FTP tools and editors, you can still open them.

16 as a Web page, the mouse flying, often changed the size of the set of good pictures. Can you correct it without looking at the picture again?
If the size of the picture does not match, in the property panel, its value will become bold for explicit purposes. Press the "Refresh" button on the panel to restore the real size.

17 How can I click a link and change multiple frames at the same time?
The most straightforward approach is to create a frame system for the link.
It is simpler to use the Dreamweaver ' Go URL ' behavior. The dialog box displays all the frames, and the corresponding page is filled in the "URL" column below.


18 Want to add behavior to the text, but the items on the behavior panel are gloomy, not optional, how to do?
Previously encountered this situation, I generally inserted a picture next to the text, the need to add behavior to the picture. Then edit the code, move to the text, and remove the picture.
The above approach is more cumbersome, convenient way is to link text to "javascript:void (null)", those behavior on the honest show.

19 The use of the behaviors layer into the Library, Dreamweaver do not let the layer of behaviors followed, how to do?
Use a template to make.

20 Check the Flash plugin and redirect scripts are sometimes not normal, there is another way?
When making Flash Web pages, people are accustomed to using the Dreamweaver "Check plugin" behavior to redirect. But sometimes it will be wrong, obviously installed the plugin, but said no. Here's a secure way to redirect.

Make a new homepage as a redirected page. Use the "Insert Refresh" of the Head object panel to redirect to a Web page that does not use Flash technology, as shown in. It will add the following code to the page header: < meta http-equiv= "Refresh" content= 4; Url=noflash.htm ">


Make a small Flash movie, add a "Get url" behavior to the first frame and point to a page that uses Flash technology. Embed this little video into the home page that is used for orientation.
Obviously, this redirected page is very reliable.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.