With modification, maybe, but I doubt it. U-Fade works partly by having three divisions. One is a relatively positioned container for the other two absolutely positioned ones. It is the foreground images in the two absolutely positioned divisions that change and their respective divisions that fade. It is their positioning, in the same spot, and their changing (escalating) z-indexes, that makes them appear to fade into and out of each other. This could be done with one division, one background image and one foreground image and/or text, but not with two background images. At least not without involving the multiple divisions again.
Now, you could absolutely or relatively position yet another division on top of the existing show and give it a really huge z-index value. It would then (for all practical purposes) appear to have the slide show as a background image, as long as its background were transparent.
The only potential problems I can think of are:
- In all browsers - the escalating z-index values of the show's divisions would eventually cover the 'top' division. This could be overcome by using the Swiss Army script which swaps out z-index values, rather than escalating them, or by modifying U-Fade to swap, rather than escalate. With a really high z-index value of - say, 9999999999999999, it would take an awfully long time for this to even be an issue in the first place.
- In IE 7 - any text appearing over the fading divisions beneath it might exhibit loss of anti-aliasing Clear Type characteristics, making it appear odd at best. If the top division is truly independent of the show's divisions (outside of them), this shouldn't be a problem.
Neither of these should be a problem if you were to do it like so:
Code:
<div style="position:relative;">
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 0)
</script>
<div style="position:absolute;top:0;left:0;z-index:999999999999999999;">Your Top Content Here</div>
</div>
Various dimensions (heights and/or widths) may need to be assigned/adjusted.
Bookmarks