Hi Guys
I have this javascript image slide show script, can any one tell me how I would add a title to each image as it changes.
Thanks
Justin
-------------------------------------------------------------------------------------------
<img src="images/img1.gif" name="myPicture" width="310" height="250" alt="" border="0" class="pic">
<script language="JavaScript">
var myPix = new Array("images/img1.gif","images/img2.gif","images/img3.gif","images/img4.gif")
var thisPic = 0
function doPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}
function doNext() {
if (document.images && thisPic < 3) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}
// -->
</script>
-------------------------------------------------------------------------------------------
I have this javascript image slide show script, can any one tell me how I would add a title to each image as it changes.
Thanks
Justin
-------------------------------------------------------------------------------------------
<img src="images/img1.gif" name="myPicture" width="310" height="250" alt="" border="0" class="pic">
<script language="JavaScript">
var myPix = new Array("images/img1.gif","images/img2.gif","images/img3.gif","images/img4.gif")
var thisPic = 0
function doPrevious() {
if (document.images && thisPic > 0) {
thisPic--
document.myPicture.src=myPix[thisPic]
}
}
function doNext() {
if (document.images && thisPic < 3) {
thisPic++
document.myPicture.src=myPix[thisPic]
}
}
// -->
</script>
-------------------------------------------------------------------------------------------














