|
The CIGHTML Mailing List
Frequently Asked Questions - Graphics Main FAQ page
How do I get one image to change into another image by holding the mouse pointer over it? This is called a mouseover and it's done with JavaScript. I have a script suitable for just one or two images and another script suitable for a larger number of images. How do I create thumbnail images? A thumbnail is just a smaller version of an existing image. What you need to do is load the original image into a graphics program and then use the program's "Resize" command to scale down the image to an appropriate size (which depends on the original image). Then use the program's Save As command to save the smaller image under a different name. I usually just add "-thumbnail" to the name. For example, if the original is mypic.jpg, I name the smaller version mypic-thumbnail.jpg. To use the thumbnail, put it in your page with an <IMG> tag, and then set up that image as a link to the normal size file. Here's an example: <A HREF="mypic.jpg"> <IMG SRC="mypic-thumbnail.jpg"> </A> Why doesn't my image appear when I view my page in the browser? The fact that you're not seeing your image is probably due to one of the following reasons:
How can I reduce the size of a GIF or JPEG file? There are a number of techniques you can try:
How do I make the background of a GIF transparent in LView Pro? To make the background of a GIF transparent in LView Pro, follow these steps:
How do I make the background of a GIF transparent in Paint Shop Pro? To make the background of a GIF transparent in Paint Shop Pro, follow these steps:
Is it possible to change the color of the border that appears around images used as links? The image link border color is the same as the regular link color. Therefore, you can change the border color by using the LINK, ALINK, and VLINK attributes in the <BODY> tag. For example, if you want a red border, you'd use this: <BODY LINK="#FF0000" ALINK="#FF0000" VLINK="#FF0000"> How do I get text to wrap around an image? Add one of the following to your <IMG> tag:
When I'm using an image as a link, how do I remove the border around the image? Add BORDER="0" to your <IMG> tag, as in this example: <A HREF="something.html"> <IMG SRC="jiffy.gif" BORDER="0"> </A> How do I make an image map with weird shapes, not just the usual rectangle, circle, or polygon? You need to create a server-side image map, which requires a special program. Here are some to check out: See also the Yahoo! image map index.I'm an AOL user and my uploaded images are distorted. What's the problem? AOL compresses uploaded images, which causes problems for some files. There's a full explanation on the AOL Webmaster Info site. When you get there, click Graphics Info and then AOL Compression. How can I prevent users from stealing my Web page images? This is extremely difficult, if not impossible, to do. However, here are three things that can help:
How do I reduce the size of a photo or other high-quality image? The best thing to do to reduce the size of a photographic image is to convert it to the JPEG format. JPEG enables you to "compress" an image without losing much of the quality. In most cases, you can reduce the image size (in kilobytes) to a tenth of its original girth or less. I usually use Paint Shop Pro for this (it's on the book's CD):
Why does it take so long for my mouseover images to appear? The first time you hover the mouse over an image, the browser has to download the new image from the server, which can take time. The easiest way to reduce that time is to use smaller images. If that's not practical, you can also "pre-load" all the images. This means that the images are loaded into memory when the page is loaded, so they appear immediately when the user places their mouse over the image. See my third mouseover tutorial to learn how to pre-load images. How can I slice up a large image to put in a table or use as an image map? The easiest way I know is to use the Picture Dicer program. How do I get those little banners to pop up when the user puts their mouse over an image? Add ALT text to your <IMG> tag: <IMG SRC="vacation12.gif" ALT="This is a picture of me getting mugged in Marrakesh"> Most modern browsers will display that text as a banner when the mouse pointer sits over an image for a second or two.
Copyright © 1995-2008 Paul McFedries and Logophilia Limited
|