Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
16
Добавлен:
26.03.2015
Размер:
13.48 Mб
Скачать

Adobe Photoshop Help

Designing Web Pages

 

 

 

Using Help | Contents | Index

Back

392

Specify font, color, and text alignment options. To place the text on the image at an angle, choose a rotation option.

Photoshop places the following HTML and JPEG files in your destination folder:

A home page for your gallery named index.htm or index.html depending on the Extension options. Open this file in any Web browser to preview your gallery.

JPEG images inside an images subfolder.

HTML pages inside a pages subfolder.

JPEG thumbnail images inside a thumbnails subfolder.

Customizing and creating Web photo gallery styles (Photoshop)

Photoshop provides a variety of styles for your Web photo gallery, which you can select using the Web Photo Gallery command. If you are an advanced user who has knowledge of HTML, you can also customize a style by editing a set of HTML template files or create a new style.

About Web photo gallery styles

The Web photo gallery styles provided by Photoshop are stored in individual folders in the following location:

Windows Program Files/Adobe/Photoshop 7.0/Presets/WebContactSheet

Mac OS Adobe Photoshop 7.0/Presets/WebContactSheet

The name of each folder in this location appears as an option in the Styles pop-up menu in the Web Photo Gallery dialog box. Each folder contains the following HTML template files, which Photoshop uses to generate the gallery:

Caption.htm Determines the layout of the caption that appears below each thumbnail on the home page.

FrameSet.htm Determines the layout of the frame set for displaying pages.

IndexPage.htm Determines the layout of the home page.

SubPage.htm Determines the layout of the gallery pages with full-size images.

Thumbnail.htm Determines the layout of the thumbnails that appear on the home page.

Each template file contains HTML code and tokens. A token is a text string that is replaced by Photoshop when you set its corresponding option in the Web Photo Gallery dialog box. For example, a template file may contain the following TITLE element that uses a token as its enclosed text:

<TITLE>%TITLE%</TITLE>

When Photoshop generates the gallery using this template file, it replaces the token %TITLE% with the text that you entered for Site Name in the Web Photo Gallery dialog box.

To better understand an existing style, you can open and study its HTML template files using an HTML editor. Because only standard ASCII characters are required to create HTML documents, you can open, edit, and create these documents using a plain-text editor such as Notepad (Windows) or SimpleText (Mac OS).

Using Help | Contents | Index

Back

392

Adobe Photoshop Help

Designing Web Pages

 

 

 

Using Help | Contents | Index

Back

393

Customizing Web photo gallery styles

You can customize an existing Web photo gallery style by editing one or more of its HTML template files. When customizing a style, you need to follow these guidelines so that Photoshop can generate the gallery correctly:

The style folder must contain these files: Caption.htm, IndexPage.htm, SubPage.htm, Thumbnail.htm, and FrameSet.htm.

You can rename the style folder but not the HTML template files in the folder.

You can have an empty Caption.htm file, and place the HTML code and tokens determining the layout of the caption in the Thumbnail.htm file.

You can replace a token in a template file with the appropriate text or HTML code, so that an option is set through the template file rather than through the Web Photo Gallery dialog box. For example, a template file may contain a BODY element with the following bgcolor attribute that uses a token as its value:

bgcolor=%BGCOLOR%

To set the background color of the page to red, you can replace the token %BGCOLOR% with “FF0000.”

You can add HTML code and tokens to the template files. All tokens must be in uppercase characters, and begin and end with the percent (%) symbol. For information on the tokens that you can use in the template files, see “Using tokens in Web photo gallery styles” on page 394.

To customize an existing Web photo gallery style:

1Locate the folder for the Web photo gallery style that you want to customize. For the location of style folders, see “About Web photo gallery styles” on page 392.

2If you don’t want to overwrite an existing style, create a copy of the style folder, and store it in the same location on your hard drive as the existing style folders.

3Using an HTML editor, open one of the HTML template files located inside the style folder.

4Customize the HTML template file using the guidelines for customization outlined in this section, and save the file.

5Repeat steps 2, 3, and 4 to customize other HTML template files in the style folder.

When you have finished, you can create a gallery using the customized style. The customized style appears as an option in the Styles pop-up menu in the Web Photo Gallery dialog box.

Creating new Web photo gallery styles

You can create a new Web photo gallery style by creating the necessary HTML template files that are used by Photoshop to generate a gallery.

To create a new Web photo gallery style:

1Locate the folder that stores the existing Web photo gallery styles. For the location of style folders, see “About Web photo gallery styles” on page 392.

2Create a new folder for the new style, and store it in the same location on your hard drive as the existing style folders.

Using Help | Contents | Index

Back

393

Adobe Photoshop Help

Designing Web Pages

 

 

 

Using Help | Contents | Index

Back

394

3 Using an HTML editor, create the necessary HTML template files and store them inside the style folder.When creating the template files, make sure that you follow the guidelines for customization outlined in “Customizing Web photo gallery styles” on page 393.

When you have finished, you can create a gallery using the new style. The new style appears as an option in the Styles pop-up menu in the Web Photo Gallery dialog box.

Using tokens in Web photo gallery styles

Photoshop features tokens in the HTML template files that are used to define a default Web photo gallery style.The tokens enable Photoshop to generate a gallery based on user input in the Web Photo Gallery dialog box.

When customizing or creating a gallery style, you can add any token to any HTML template file, with the exception of %THUMBNAILS% and %THUMBNAILSROWS%, which can only appear in the IndexPage.htm file. When adding a token, keep in mind that you may also need to add HTML code to the file so that the token is used correctly.

You can use the following tokens in the HTML template files:

%ALINK% Determines the color of active links.

%ALT% Determines the name of an image file.

%BANNERCOLOR% Determines the color of the banner.

%BANNERFONT% Determines the font of the banner text.

%BANNERFONTSIZE% Determines the font size for the banner text.

%BGCOLOR% Determines the background color.

%CAPTIONFONT% Determines the font for the caption below each thumbnail on the home page.

%CAPTIONFONTSIZE% Determines the font size for the caption.

%CHARSET% Determines the character set used on each page.

%CURRENTINDEX% Determines the link for the current home page.

%DATE% Determines the date that appears on the banner.

%FILEINFO% Determines the image file information for a caption.

%FILENAME% Determines the filename of an image.

%FIRSTPAGE% Determines the link for the first gallery page that appears in the right frame of a frame set.

%FRAMEINDEX% Determines the link for the home page that appears in the left frame of a frame set.

%HEADER% Determines the title of the gallery.

%IMAGEBORDER% Determines the border size of the full-size image on a gallery page.

%IMAGEPAGE% Determines the link to a gallery page.

%IMAGESRC% Determines the URL for a full-size image on a gallery page.

%LINK% Determines the color of links.

%NEXTIMAGE% Determines the link for the next gallery page.

%NEXTINDEX% Determines the link for the next home page.

%PAGE% Determines the current page location (for example, page 1 of 3).

Using Help | Contents | Index Back 394

Adobe Photoshop Help

Designing Web Pages

 

 

 

Using Help | Contents | Index

Back

395

%PHOTOGRAPHER% Determines the name of the person or organization that deserves credit for the photos in the gallery.

%PREVIMAGE% Determines the link for the previous gallery page.

%PREVINDEX% Determines the link for the previous home page.

%SUBPAGEHEADER% Determines the title of the gallery.

%SUBPAGETITLE% Determines the title of the gallery.

%TEXT% Determines the text color.

%THUMBBORDER% Determines the border size for the thumbnails.

%THUMBNAILS% This token is replaced with thumbnails using the Thumbnail.htm file for the frame styles. You must place this token alone in a single, non-breaking line in the HTML file.

%THUMBNAILSRC% Determines the link to a thumbnail.

%THUMBNAILSROWS% This token is replaced with rows of thumbnails using the Thumbnail.htm file for the non-frame styles. You must place this token alone in a single, non-breaking line in the HTML file.

%TITLE% Determines the title of the gallery.

%VLINK% Determines the color of visited links.

Important: When customizing or creating a template for a gallery style, you should place each of the following tokens on a separate line in the HTML file: %CURRENTINDEX%, %NEXTIMAGE%, %NEXTINDEX%, %PAGE%, %PREVIMAGE%, and %PREVINDEX%. When generating specific pages of a gallery, Photoshop skips lines in a template that contain tokens that don’t apply to those pages. For example, when Photoshop generates the first gallery page, it skips any line in the template that contains the %PREVIMAGE% token, which determines the link to the previous gallery page. By keeping the %PREVIMAGE% token on a separate line, you ensure that Photoshop doesn’t ignore other tokens in the template.

Using Help | Contents | Index

Back

395

Соседние файлы в папке Adobe Photoshop 7.0
  • #
    26.03.2015665 б8serial.txt
  • #
    26.03.2015519.46 Кб9Setup.bmp
  • #
    26.03.2015250 б8SETUP.INI
  • #
  • #
    26.03.201549 б18setup.lid
  • #
    26.03.201513.48 Mб16User Guide.pdf
  • #
    26.03.2015296.67 Кб6_INST32I.EX_
  • #
    26.03.2015175.47 Кб7_sys1.cab
  • #
    26.03.20156.55 Кб6_sys1.hdr
  • #
    26.03.20152.95 Mб6_user1.cab
  • #
    26.03.20159.72 Кб7_user1.hdr