T
Trevor L.
BlankI am possibly flogging a dead horse here, but ...
I have finally got the slideshow on my site working more or less as I want it, but there is still one problem
Here is the scenario.
From the page album.html, I open a new window using Spawn
<input type="button"
value="Slideshow - Family"
onclick="spawnJimcoPopup
('slideshowauto.html?firstslide=1&lastslide=15','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no',
'600','615','0','0','pixel');return false;">
In slideshow.html, I have this code
<body id="slide" ...>
<div id="Image">Image here
</div>
<div id="caption">
<span id="ImgText">START</span> <br>
The general style for body is
body, frameset
{font: 16px Times New Roman,Arial,Helvetica,sans-serif ;
background-color: #66CDAA ;
background-image: url(images/04-08-24-1-bird-bath.jpg) ;
border-collapse: collapse ;
width: 790px ;
margin: 0 auto ; padding: 0 ;}
The ID #slide simply sets the background
body#slide {background: white ;}
The ID #Image is used to overwrite the HTML using this Javascript
document.getElementById('Image').innerHTML =
'<img src=" ' + Slides[ImgNum] + ' " alt=" "><br>'
The ID #caption is
div#caption{font: 16px Verdana,Arial,Helvetica,sans-serif ;
position: relative ;
top: 0 ; width: 600px ;
text-align: center ;}
The result is an image top left positioned with the caption centred
The question is how can I get the image to centre?
I have other code which does it, but I can't seem to adapt it to this situation
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
I have finally got the slideshow on my site working more or less as I want it, but there is still one problem
Here is the scenario.
From the page album.html, I open a new window using Spawn
<input type="button"
value="Slideshow - Family"
onclick="spawnJimcoPopup
('slideshowauto.html?firstslide=1&lastslide=15','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no',
'600','615','0','0','pixel');return false;">
In slideshow.html, I have this code
<body id="slide" ...>
<div id="Image">Image here
</div>
<div id="caption">
<span id="ImgText">START</span> <br>
The general style for body is
body, frameset
{font: 16px Times New Roman,Arial,Helvetica,sans-serif ;
background-color: #66CDAA ;
background-image: url(images/04-08-24-1-bird-bath.jpg) ;
border-collapse: collapse ;
width: 790px ;
margin: 0 auto ; padding: 0 ;}
The ID #slide simply sets the background
body#slide {background: white ;}
The ID #Image is used to overwrite the HTML using this Javascript
document.getElementById('Image').innerHTML =
'<img src=" ' + Slides[ImgNum] + ' " alt=" "><br>'
The ID #caption is
div#caption{font: 16px Verdana,Arial,Helvetica,sans-serif ;
position: relative ;
top: 0 ; width: 600px ;
text-align: center ;}
The result is an image top left positioned with the caption centred
The question is how can I get the image to centre?
I have other code which does it, but I can't seem to adapt it to this situation
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html