[ Pobierz całość w formacie PDF ]
.You can edit those forms using Dreamweaver; see  CreatingForms on page 377.To change the appearance of a dialog box:1 Find the appropriate.htm file in Configuration/Objects or Configuration/Commands or Configuration/Behaviors.2 Make a copy of the file, somewhere other than the Configuration folder.3 Open the copy in Dreamweaver, edit the form, and save the copy.4 Quit Dreamweaver.5 Copy the changed copy back to the Configuration folder, in place of theoriginal.(It s a good idea to first make a backup of the original, so you canrestore it later if you need to.)6 Launch Dreamweaver again to see the changes.You should change only the appearance of the dialog box, not how it works; it stillmust contain the same types of form elements, with the same names, so that theinformation that Dreamweaver obtains from the dialog box can still be used in thesame way.For example, the Comment object takes text input from a text area in a dialogbox, then uses a simple JavaScript function to turn that text into an HTMLcomment that inserts it into your document.The form that describes the dialogbox is in Configuration/Objects/Invisibles/Comment.htm.You can open that fileand change the size and other attributes of the text area, but if you remove theTEXTAREA tag entirely, or change the value of its NAME attribute, the Commentobject will no longer work properly.Customizing Dreamweaver 391 Editing the HTML source formatting profileThe HTML source formatting profile determines how Dreamweaver formats theHTML source code for a document.The profile includes formatting preferencesfor individual tags and groups of tags, along with the HTML Format preferences(set with the Edit > Preferences command).You can edit the SourceFormat.txt filein a text editor for precise control over how Dreamweaver writes HTML.Theprofile is a text file saved in the Configuration folder within the Dreamweaverapplication folder.HTML Format preferences set with the Preferences command are saved inSourceFormat.txt when you quit Dreamweaver, and changes made to the profiledo not take effect until you restart Dreamweaver.Thus, to ensure access to thenew preference settings, quit the application before editing the profile.The HTML source formatting profile follows a specific format, which is outlinedin the file.Note the following conventions:Each section of the profile begins with (for example, ,, ).The parameters for each section are defined within HTML comments() directly above the section.The OMIT line in the section is reserved for future use (it currentlydoes not affect HTML source formatting).An individual tag can be marked as belonging to an indentation group(IGROUP) in the section.By default, IGROUP 1 contains table rowsand columns, and IGROUP 2 contains framesets and frames.These groupingscorrespond to the Indent Table Rows and Columns and Indent Framesets andFrames options in the HTML Format Preferences dialog box.Indentation canbe turned off for the entire group by removing its number from the ACTIVEattribute in the section.You can also add other tags to IGROUP 1 or2 so you can control them with the options in the HTML Format Preferences.For example, the default settings for the P tag in SourceFormat.txt are , which produces the following:A paragraph of text that is indented from the left margin and that has a breakbefore the opening P tag and after the closing P tag, but not after the opening P andnot before the closing P.Next paragraph.392 Chapter 16 If you change the settings to , you will get this:A paragraph of text that is not indented from the left margin and that has one breakbefore and after the opening P tag, one break before the closing P tag, and two breaksafter the closing P tag.Next paragraph.Some tag and attribute settings include the terms NAMECASE or SAMECASE.NAMECASE specifies that the tag or attribute is to be capitalized in a particular way.For example, onClick is specified as , indicating that itshould always be capitalized in that specific way, neither all-uppercase nor all-lowercase.Dreamweaver uses SAMECASE to ensure that it uses the right case (upperor lower) when generating certain attributes; don t remove SAMECASE from any ofthe attribute formatting specifications where it appears.Any attribute not specified in the SourceFormat.txt file uses the default formattingsettings that you specify in the HTML Format preferences panel.Customizing Dreamweaver 393 About browser profilesBrowser profiles are the files to which your documents are compared when yourun a target browser check (see  Checking a page for compatibility with targetbrowsers on page 167).Each profile contains information about the HTML tagsand attributes that a particular browser supports.It can also contain warnings,error messages, and suggestions for tag substitutions.Browser profiles are stored in the Configuration/BrowserProfiles folder within theDreamweaver application folder [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • andsol.htw.pl