I am very beginner at coding and most the answers I have come across have just gone straight over my head. The only code I have to make my slideshow work (which it is working) is:
<script type="text/javascript">
<!-->
var image1=new Image()
image1.src="congo.jpg"
var image2=new Image()
image2.src="snow.jpg"
var image3=new Image()
image3.src="mekong.jpg"
//-->
</script>
and in the body section:
<img src="congo.jpg" name="slide" width="400" height="300">
<script type="text/javascript">
<!--
var step=1
function slideit(){
document.images.slide.src=eval("image"+step+".src")
if(step<3)
step++
else
step=1
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
I have no clue how to center this or put in a margin. I tried placing it within a table so I could manipulate its location, which didn't work (assuming it's just not that easy), and tried messing around with a tag to center but I was just pulling at strings! What is the proper way to add margin/center? Thank you.