SteveH
07-13-2012, 08:41 PM
Hello
I have some JS in my <script type="text/javascript"></script> tags that fades images in and out, and in the same Web page I have this in my <body></body> tags:
<table class="center">
<tr><td width="100%" align="center" valign="top" id="gradient"></td></tr>
</table>
<div id="placeholderImageBackground">
<img alt="slide show" src="test1.jpg" width="320" height="320" id="placeholderImage" /></div>
<script type="text/javascript">
RunSlideShow("placeholderImage","placeholderImageBackground",
"test1.jpg;test2.jpg;test3.jpg;test4.jpg;test5.jpg",6);
</script>
The fading transition features made possible by the JS work great, but at the moment the image(s) are outside the table (which has a gradient as a background).
I know I probably need to use CSS to position the image(s), but what snippet of code in the JS do I 'hang' the CSS to? Is it: placeholderImageBackground? I am also not sure if I can place the snippets of JS cited here inside a table cell, but I am not sure of another way of doing it.
Thanks for any help.
Steve
I have some JS in my <script type="text/javascript"></script> tags that fades images in and out, and in the same Web page I have this in my <body></body> tags:
<table class="center">
<tr><td width="100%" align="center" valign="top" id="gradient"></td></tr>
</table>
<div id="placeholderImageBackground">
<img alt="slide show" src="test1.jpg" width="320" height="320" id="placeholderImage" /></div>
<script type="text/javascript">
RunSlideShow("placeholderImage","placeholderImageBackground",
"test1.jpg;test2.jpg;test3.jpg;test4.jpg;test5.jpg",6);
</script>
The fading transition features made possible by the JS work great, but at the moment the image(s) are outside the table (which has a gradient as a background).
I know I probably need to use CSS to position the image(s), but what snippet of code in the JS do I 'hang' the CSS to? Is it: placeholderImageBackground? I am also not sure if I can place the snippets of JS cited here inside a table cell, but I am not sure of another way of doing it.
Thanks for any help.
Steve