Tip: If there are several large images on the site, you can click the [+] icon above [Preload Image] to add multiple preload images. The specific operation is the same as shown in Figure 36-4.
(5) Save the file to complete the operation. In this way, the download speed of images can be accelerated, so that users will not wait too long when browsing the web, which is of great significance for improving the performance of the website.
Creative Ideas By using Macromedia's extension plug-in Advance_Random_Images, you can easily create random advertising images in web pages.
Operation steps
(1) Install the plug-in. Use the [Command] | [Extension Management] command in the menu bar to bring up the [Macromedia Extension Manager] dialog box and install the Advance_Random_Images extension, as shown in Figure 38-3.
(2) Call the command. Open the banner.htm file in the source folder of this example, place the cursor at the location where you want to insert the advertisement, and call up the [AdvancedRandomImages] command, as shown in Figure 38-4.
(3) Set the image. Set the image transformation properties in the [RandomImages] dialog box that pops up, as shown in Figure 38-5.
(4) Add pictures. Add the first advertising image, as shown in Figure 38-6.
Tip: The pictures used in this example are placed in the banner folder in the material folder of this example.
(5) Then use the same method to add other pictures. After the addition is completed, click the [OK] button to confirm the operation, as shown in Figure 38-7.
(6) Then save the page file and preview it, and the effect of the random advertising image will be created. Readers can refer to the bannerok.htm effect file in the material folder of this example to see whether the production result is correct. At this point, this example is completed.
The technology described in this example is commonly used in various websites. For example, on several large domestic portal websites, these transformation advertisements can be seen on almost every page. Readers can refer to these contents to practice more.