with 2 cells in each row. Below are the codes for the images:
However, many jpgs will accept the transparency attribute. So in this case you would write the codes the way Tom Landrum has done on this page. As you can see from Tom's page, the jpg I used in the example above will indeed accept the transparency attribute. Thanks to Tom for pointing this out to me.
IMAGE AS BACKGROUND - NON-ANIMATED GIFs
This technique is for non-animated gifs. In each of the tables above, a gif was used as the | background. The cells on the left have no transparency; the ones on the right have a 50% transparency for the candles and an 80% for the roses. The code for making transparent gif backgrounds is as follows:
<td background="URL.gif" width=?? height=?? transparency=??%></td>
You can also use the gif as a table background. As you can see, gifs with a black background color do not always make especially successful transparencies. So try to find gifs with white, light colored or transparent backgrounds. You can also combine a bgcolor with a transparency plus the gif background with a transparency for special effects. Just experiment and see what happens.
NOTE: Although this technique will work for many gifs, there are a few that will not fade. If you find one of these, then use the type of code that I used above for jpgs that won't fade.
If you use a GIF with a portion transparent over a table bgcolor transparency, the GIF transparency doesn't work, according to Net4TV.
Below are two gifs as they appear separately: three ghosts and a skeleton, and a graveyard. Below them is the combined image of the graveyard used as the table background with the ghost gif set at 60% transparency. To make the transparency attribute work in this case, the ghost gif must be used in the <img src> tag. This will not work if the ghost gif is used as the <td> background.
|
|
|
|
|
Ray (Scopehound) discovered this effect when using transparency. My example is immediately below. Look under "Examples of Transparency in Use" below for Ray's page. Here's his explanation. "You start out with a non-animated background image. Now you take an animated gif and make it the exact height and width of the background image. So you put the table together like this:"
In the example above, the owl is a jpg; the "snow" is an animated gif. Putting the transparency attribute in with the animated gif makes the background image seem to blink. This is because animated gifs consist of images with alternating black and transparent or white backgrounds. The owl shows up only when the transparent background phase of the animated gif is onscreen.
Although this page concerns itself with how the transparency attribute behaves in a tabled form, it is possible to transparentize text, too. You use the tag and just add in the percent of transparency you desire. In the example below, the T and Y have no transparency; the others shade from 10% to 50% and back again in 10% increments:
Other uses for the transparency attribute, similar to the jpg and gif examples above, quoted from a Net4TV tute: "Use transparency to pull down image colors that are too bright (made for computers) so that they look great on WebTV by setting transparency=20. There are some transparency "bugs" in the values around 30 that can turn into strange colors. If this happens to you, just make the value higher or lower until you get the color you want." [The url I had for this tute is no longer valid.]
However, I did play around with mixing transparent colors. So for this example, go to Mixing Colors Using Transparency.
EXAMPLES OF TRANSPARENCY IN USE
On this "Submarine" page, Flo has used four transparent layers of blue with the gifs sandwiched in between them to give the illusion of distance underwater. She had to stick to non-amimated gifs for this page, because animated gifs appeared to pop right to the surface layer, no matter which layer she tried to use them on. This page uses CSS to position and layer the various elements.
Tom Landrum (jawjahboy) has used a series of increasing transparency percentages for the introductory page for his Halloween slide show.
Ray (Scopehound) has used a transparency on this page. See his explanation above under "Blinking Effect with Images" above.
Glenda has used transparency to great effect in her Emerald page. "I took the background jpg....reduced it down to 20% of it's original size...so you get the effect that the stone is making it "appear" smaller....It is CSS'ed under the stone.
Also...I CSS'ed div aligned the scopes and then the "bed" of the stone...then the scopes...and I used the transparency attribute to the "bed" of the stone..."
Fred's Textured Grad Backgrounds tutorial shows you how to use transparency to obtain textured background effects.
|