Include
Images in the Popup Text or Caption Return to the Index |
|
How can I include images
in my popups? How can I include images in the CAPTION?
This is run-of-the-mill OverLIB. The TEXT argument can contain any html that will legally fit within a table cell. This includes images. Any normal parts of the <img> tag can be included, i.e. align=, border=, etc. The popup TEXT area will always be at least as large as the image (after scaling). See Examples #1-5. The simplest way to put images into the CAPTION BAR is by using the CAPICON token. This is fast and easy, but offers none of the usual positioning or scaling controls. The image will always be at its full size, and just to the left of the centered CAPTION text. The popup CAPTION area will always be at least as large as the image. See example #6 below. For more control, insert the image into the text of the CAPTION token. The CAPTION string can contain any html that will legally fit within a table cell. This includes images. Any normal parts of the <img> tag can be included, i.e. align=, border=, etc. The popup CAPTION area will always be at least as large as the image (after scaling). See Example #7-8 below. The image can also be inserted through the BACKGROUND token. There are a lot of risks. See Example #9. Each of these examples is discussed fully in the next section of this page. 1. Demonstrating an image in the popup TEXT 2. Demonstrating an image on the right in the popup TEXT 3. Demonstrating an image in the popup TEXT with no ALIGNment 4. Demonstrating an image and a bullet list in the popup TEXT 5. Demonstrating an image on the right and a bullet list in the popup TEXT 6. Demonstrating CAPICON with CAPTION text 7. Demonstrating vertical centering of the CAPTION next to the caption image 8. Demonstrating Image tag inside CAPTION text and resizing caption images 9. Demonstrating the use of BACKGROUND for images.
The BACKGROUND image NEVER controls the size of the popup. The size of the popup is controlled by the contents of the the TEXT string, or by HEIGHT and WIDTH tokens (whichever is larger.) ADDITIONAL SIDE EFFECTS. If you use BACKGROUND, OverLIB will NOT provide borders or padding around the image. Also, OverLIB will not display the CAPTION BAR any time BACKGROUND is used. Therefore, you cannot expect to see the CLOSETEXT word, which means that you can not dismiss the popup if you have set STICKY. For MUCH MORE on BACKGROUNDs, see the BACKGROUND page of this tutorial. 10. Demonstrating a slideshow in the popup Kill slideShow Popup |
|
|
|
Please let me know if you encounter problems.Modified by REB,June 1, 2004 |