Add an effect on photos on the web with Java applets

zhaozj2021-02-17  137

Many netizens like to "hang" on their own online home. It should be said that the photos are quietly placed on the web, which is already in the past. Now, people prefer to bring some special effects. The Java applet is a good way to increase the photo effect.

Prepare source files

Select the photo to be placed on the web page, scan the image file to get the photo with the scanner, and then use the image processing software such as Photoshop to perform an image of 300 × 300 pixels, and finally save it to or other images such as audience to view software. .jpg format, saved to the newly built folder photo (not to use Chinese characters to name this folder). Now, these photo images are now called 12.jpg, Photo2.jpg, Photo3.jpg. Among them, photo1.jpg is the main photo, photo2.jpg and photo3.jpg are auxiliary photos, and it is best to choose photos of different periods to reflect individuals. In order to let others know you, you can also make an explanation file in an HTML format, which contains some necessary explanatory information. This file is set to note.htm, and this file is also saved in the Photo folder.

2. Prepare HTML Editor

Ancient language cloud: Workers must have a prostitute.

In order to use Java code to program a web page, there is a html code editor. It is recommended to use Web Weaver 98. This program can be downloaded from the Internet, this program is 1.02 version of the Internet on February 1, 1999, downloads the absolute path name ftp://ftp.simtel.net/pub/simtelnet/win95/html/webwv982.zip, download The size is about 3.7m. Everyone can also go to the DOWNLOAD site (http://www.download.com), using the search function provided above, search the Web Weaver 98 download link to the Web Weaver 98 with Web Weaver 98, and the program is installed, the tool is installed after the download is over. Even if you are prepared.

3. Making web files for Java applets with different effects

The process of making the Java applet is relatively simple, as long as the corresponding Java code is input into the HTML editor, then the document is stored as an HTML format (here the HTML files below are Effect1.htm and Effect2, respectively. HTM), saved to the Photo folder.

(1) A beautiful people in the water

"The grass is green, the white fog is vast, there is a good person, in the water side ..."

The realm in the song can also be implemented on the web page. Now that you have a photo on your photo, you can make you feel in the water by the following code.

Value = "no"> Sorry, Your Browser Doesn't Support Java. (2) Displays 3 photos of different periods

Insert the following Java code into the HTML code of the web page, you can implement 3 photo turning, click any one to link to the Photonote.htm page to read the description information.

Sorry Your Browser Doesn't Support Java. is two effects of Java small program code. Remember to save the HTML file that is inserted into the photo folder. 4. Get the rest of the necessary Supporting documents

Download a tool software called Anfy Java 1.4 on the network. The absolute path downloaded is ftp://ftp.digital.com/pub/micro/pc/simtelnet/win95/java/anjava14.zip, the download size is 3227k. You can also search for its download links as keywords to the Download Site as keywords. After installing this tool software, find Bookflip.class, Anfy.class, Lware.class, Bookflip.jar, and Anwater.class, Anwater. JAR et al. Class file copied it to the PHOTO folder. Support file is also ready.

5. Test and use the corresponding page

Using a browser that supports Java effect opens the created Effect1.htm file and Effect2.htm, you will see the wonderful effects of Java applets. If the effect is not very satisfied, you can reopen the HTML file with the HTML editor, adjust the various parameters in the corresponding code segment until satisfaction.

If you add some other necessary content to a web page with a Java applet, you can form your own featured web pages. As for the use of the homepage or from the page, you will see your needs. Since the above Java code does not consider the partition effect, only the Java effect is displayed in the browser window in the browser window, so it is suitable for the top or other of the Java effect to form a home page or other guided web page.

When adding text or other images, use Netscape Composer or FrontPage Express to open Effect1.htm or Effect2.htm directly to insert.

Finally, upload all the files in the photo folder to the server where the home page is located, set the corresponding link, others can see the corresponding effect.

转载请注明原文地址:https://www.9cbs.com/read-31431.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.057, SQL: 9